Polish "Add properties for configuring EnumFeature and JsonNodeFeature"

See gh-37885
This commit is contained in:
Andy Wilkinson
2023-10-16 15:12:01 +01:00
parent 8edb4b9729
commit d796087dfa
5 changed files with 45 additions and 23 deletions

View File

@@ -64,11 +64,19 @@ Spring Boot also has some features to make it easier to customize this behavior.
You can configure the `ObjectMapper` and `XmlMapper` instances by using the environment.
Jackson provides an extensive suite of on/off features that can be used to configure various aspects of its processing.
These features are described in six enums (in Jackson) that map onto properties in the environment:
These features are described in several enums (in Jackson) that map onto properties in the environment:
|===
| Enum | Property | Values
| `com.fasterxml.jackson.databind.cfg.EnumFeature`
| `spring.jackson.datatype.enum.<feature_name>`
| `true`, `false`
| `com.fasterxml.jackson.databind.cfg.JsonNodeFeature`
| `spring.jackson.datatype.jsonnode.<feature_name>`
| `true`, `false`
| `com.fasterxml.jackson.databind.DeserializationFeature`
| `spring.jackson.deserialization.<feature_name>`
| `true`, `false`