All jackson configuration keys start with jackson
.
Example:
All features can be configured with their name as the key and a boolean to indicate enabled or disabled.
serialization | Map | |
deserialization | Map | |
mapper | Map | |
parser | ||
generator | Map |
Example:
jackson:
indentOutput: true
writeDatesAsTimestamps: false
deserialization:
failOnUnknownProperties: false
You can use the @JsonView
annotation to controller methods if you set jackson.json-view.enabled
to true
in .
Jackson’s @JsonView
annotation allows you to control which properties are exposes on a per response basis. See Jackson JSON Views for more information.
In addition to configuration, beans can be registered to customize Jackson. All beans that extend any of the following classes will be registered with the object mapper.
Any modules registered via the service loader will also be added to the default object mapper.