title: Spring Boot and Jackson, JSR310 in response body
body: <p>The JacksonAutoConfiguration initializes an ObjectMapper with the JSR310Module registered. Then HttpMessageConvertersAutoConfiguration initializes a MappingJackson2HttpMessageConverter. But this MessageConverter never gets plugged in the RequestResponseBodyMethodProcessor.</p>
  
  <p>As a result:</p>
  
  <ul>
  <li>If the controller returns a object which should be jsonified by Jackson, dates are poorly converted because the wrong MappingJackson2HttpMessageConverter is used (initialized in WebMvcConfigurationSupport#addDefaultHttpMessageConverters)</li>
  <li>But, if the ObjectMapper is injected in the controller and used to jsonify the same object, then the date format is alright.</li>
  </ul>
  
  <p>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? </p>