mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Merge branch '2.0.x'
This commit is contained in:
commit
fde534c877
@ -1199,25 +1199,31 @@ configure various aspects of its processing. These features are described in six
|
||||
Jackson) that map onto properties in the environment:
|
||||
|
||||
|===
|
||||
|Jackson enum|Environment property
|
||||
|Enum|Property|Values
|
||||
|
||||
|`com.fasterxml.jackson.databind.DeserializationFeature`
|
||||
|`spring.jackson.deserialization.<feature_name>=true\|false`
|
||||
|`spring.jackson.deserialization.<feature_name>`
|
||||
|`true`, `false`
|
||||
|
||||
|`com.fasterxml.jackson.core.JsonGenerator.Feature`
|
||||
|`spring.jackson.generator.<feature_name>=true\|false`
|
||||
|`spring.jackson.generator.<feature_name>`
|
||||
|`true`, `false`
|
||||
|
||||
|`com.fasterxml.jackson.databind.MapperFeature`
|
||||
|`spring.jackson.mapper.<feature_name>=true\|false`
|
||||
|`spring.jackson.mapper.<feature_name>`
|
||||
|`true`, `false`
|
||||
|
||||
|`com.fasterxml.jackson.core.JsonParser.Feature`
|
||||
|`spring.jackson.parser.<feature_name>=true\|false`
|
||||
|`spring.jackson.parser.<feature_name>`
|
||||
|`true`, `false`
|
||||
|
||||
|`com.fasterxml.jackson.databind.SerializationFeature`
|
||||
|`spring.jackson.serialization.<feature_name>=true\|false`
|
||||
|`spring.jackson.serialization.<feature_name>`
|
||||
|`true`, `false`
|
||||
|
||||
|`com.fasterxml.jackson.annotation.JsonInclude.Include`
|
||||
|`spring.jackson.default-property-inclusion=always\|non_null\|non_absent\|non_default\|non_empty`
|
||||
|`spring.jackson.default-property-inclusion`
|
||||
|`always`, `non_null`, `non_absent`, `non_default`, `non_empty`
|
||||
|===
|
||||
|
||||
For example, to enable pretty print, set `spring.jackson.serialization.indent_output=true`.
|
||||
|
Loading…
Reference in New Issue
Block a user