• Andy Wilkinson's avatar
    Register Module beans with Jackson2ObjectMapperBuilder · f11bcb94
    Andy Wilkinson authored
    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
    f11bcb94
Name
Last commit
Last update
docs Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-deployment-tests Loading commit data...
spring-boot-docs Loading commit data...
spring-boot-full-build Loading commit data...
spring-boot-integration-tests Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-tools Loading commit data...
spring-boot-versions Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
pom.xml Loading commit data...