Commit 51c2b049 authored by Phillip Webb's avatar Phillip Webb

Fix CodecsAutoConfiguration following API change

Update CodecsAutoConfiguration to align with the latest Spring Framework
changes.
parent c1101e7e
...@@ -55,9 +55,9 @@ public class CodecsAutoConfiguration { ...@@ -55,9 +55,9 @@ public class CodecsAutoConfiguration {
public CodecCustomizer jacksonCodecCustomizer(ObjectMapper objectMapper) { public CodecCustomizer jacksonCodecCustomizer(ObjectMapper objectMapper) {
return (configurer) -> { return (configurer) -> {
CodecConfigurer.DefaultCodecs defaults = configurer.defaultCodecs(); CodecConfigurer.DefaultCodecs defaults = configurer.defaultCodecs();
defaults.jackson2Decoder( defaults.jackson2JsonDecoder(
new Jackson2JsonDecoder(objectMapper, EMPTY_MIME_TYPES)); new Jackson2JsonDecoder(objectMapper, EMPTY_MIME_TYPES));
defaults.jackson2Encoder( defaults.jackson2JsonEncoder(
new Jackson2JsonEncoder(objectMapper, EMPTY_MIME_TYPES)); new Jackson2JsonEncoder(objectMapper, EMPTY_MIME_TYPES));
}; };
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment