Browse Source

Merge branch '3.5.x'

Closes gh-48115
pull/48124/head
Andy Wilkinson 1 month ago
parent
commit
62a1dd6ed1
  1. 11
      documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/actuator/endpoints.adoc

11
documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/actuator/endpoints.adoc

@ -383,6 +383,17 @@ management: @@ -383,6 +383,17 @@ management:
TIP: See javadoc:org.springframework.boot.actuate.autoconfigure.endpoint.web.CorsEndpointProperties[] for a complete list of options.
[[actuator.endpoints.json]]
== JSON
When working with JSON, Jackson is used for serialization and deserialization.
By default, an isolated javadoc:tools.jackson.databind.json.JsonMapper[] is used.
This isolation means that it does not share the same configuration as the application's `JsonMapper` and it is not affected by `spring.jackson.*` properties.
To disable this behavior and configure Actuator to use the application's `JsonMapper`, set configprop:management.endpoints.jackson.isolated-object-mapper[] to `false`.
Alternatively, you can define your own javadoc:org.springframework.boot.actuate.endpoint.jackson.EndpointJsonMapper[] bean that produces a `JsonMapper` that meets your needs.
Actuator will then use it for JSON processing.
[[actuator.endpoints.implementing-custom]]
== Implementing Custom Endpoints

Loading…
Cancel
Save