spring-boot/spring-boot-autoconfigure
Andy Wilkinson f11bcb9495 Register Module beans with Jackson2ObjectMapperBuilder
Prior to this commit, Module beans were registered with all
ObjectMapper beans, but were not registered with the auto-configured
Jackson2ObjectMapperBuilder. This meant that any ObjectMapper created
with the builder but not exposed as a bean would not have the Module
beans registered with it. One such ObjectMapper is the one used by the
auto-configured MappingJackson2XmlHttpMessageConverter. This caused
XML (de)serialization to be different to JSON (de)serialization.

This commit updates JacksonAutoConfiguration to register all of the
application context's Module beans with the auto-configured
Jackson2ObjectMapperBuilder. This ensures consistent configuration
of any ObjectMapper that's created using the builder, irrespective of
whether or not that ObjectMapper is also exposed as a bean, and
also ensures that (de)serialization of JSON and XML is consistent.

See gh-2327
2015-02-12 13:52:13 +00:00
..
src Register Module beans with Jackson2ObjectMapperBuilder 2015-02-12 13:52:13 +00:00
.gitignore Restore test classes 2014-06-01 13:11:25 +01:00
pom.xml Allow XA DataSource and ConnFactory pools to be configured via the env 2015-01-27 10:55:56 +00:00