Reputation: 4667
The JacksonAutoConfiguration initializes an ObjectMapper with the JSR310Module registered. Then HttpMessageConvertersAutoConfiguration initializes a MappingJackson2HttpMessageConverter. But this MessageConverter never gets plugged in the RequestResponseBodyMethodProcessor.
As a result:
How can I can wake the WebMvcAutoConfigurationAdapter up? What should I do to bind the configured Jackson ObjectMapper with Spring MVC and make it handle response bodies?
Upvotes: 1
Views: 1504
Reputation: 58114
If you use @EnableWebMvc
that would explain your symptoms So the rule thumb is: do not use @EnableWebMvc
with Spring Boot, unless you wan't to customize Web MVC configuration?
Upvotes: 3