You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
spring-boot/src/checkstyle
Brian Clozel 97af0b2f3a Add actuator specific ObjectMapper
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
5 years ago
..
checkstyle-header.txt Merge branch '1.5.x' into 2.0.x 6 years ago
checkstyle-suppressions.xml Add cloud native buildpack module 5 years ago
checkstyle.xml Port the build to Gradle 5 years ago
import-control.xml Add actuator specific ObjectMapper 5 years ago
nohttp-checkstyle-suppressions.xml Fix checkstyle violations 6 years ago
nohttp-checkstyle.xml Merge branch '1.5.x' into 2.0.x 6 years ago
nohttp-whitelist.txt Relax nohttp requirement for service.wsdl 5 years ago