• Andy Wilkinson's avatar
    Use configured ObjectMapper, if available, in all EndpointMBeans · becbc00a
    Andy Wilkinson authored
    Prior to this commit, every EndpointMBean used its own ObjectMapper.
    Each of these ObjectMappers was created using new ObjectMapper() with
    no opportunity for configuration.
    
    This commit uses the ObjectMapper from the application context and
    shares it among all EndpointMBeans. This gives the user control over
    the ObjectMapper’s configuration using spring.jackson.* properties,
    their own Jackson2ObjectMapperBuilder bean, etc. In the absence of an
    ObjectMapper in the application context a single ObjectMapper is
    instantiated and is used by all EndpointMBeans instead.
    
    To allow the ObjectMapper to be shared, a number of constructors have
    been overloaded to also take the ObjectMapper as a parameter. In these
    cases the old constructor has been preserved for backwards compatibility
    but has been deprecated.
    
    Closes gh-2393
    becbc00a
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...