• Brian Clozel's avatar
    Add actuator specific ObjectMapper · 97af0b2f
    Brian Clozel authored
    Prior to this commit, Actuator endpoints would use the application
    ObjectMapper instance for serializing payloads as JSON. This was
    problematic in several cases:
    
    * application-specific configuration would change the actuator endpoint
    output.
    * choosing a different JSON mapper implementation in the application
    would break completely some endpoints.
    
    Spring Boot Actuator already has a hard dependency on Jackson, and this
    commit uses that fact to configure a shared `ObjectMapper` instance that
    will be used by the Actuator infrastructure consistently, without
    polluting the application context.
    
    This `ObjectMapper` is used in Actuator for:
    
    * JMX endpoints
    * Spring MVC endpoints with an HTTP message converter
    * Spring WebFlux endpoints with an `Encoder`
    * Jersey endpoints with a `ContextResolver<ObjectMapper>`
    
    For all web endpoints, this configuration is limited to the
    actuator-specific media types such as
    `"application/vnd.spring-boot.actuator.v3+json"`.
    
    Fixes gh-12951
    97af0b2f
Name
Last commit
Last update
..
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-actuator-autoconfigure Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-devtools Loading commit data...
spring-boot-docs Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-properties-migrator Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-test Loading commit data...
spring-boot-test-autoconfigure Loading commit data...
spring-boot-tools Loading commit data...