Browse Source

Merge branch '2.0.x'

pull/13540/merge
Andy Wilkinson 8 years ago
parent
commit
fde534c877
  1. 20
      spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc

20
spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc

@ -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) that map onto properties in the environment:
|=== |===
|Jackson enum|Environment property |Enum|Property|Values
|`com.fasterxml.jackson.databind.DeserializationFeature` |`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` |`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` |`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` |`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` |`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` |`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`. For example, to enable pretty print, set `spring.jackson.serialization.indent_output=true`.

Loading…
Cancel
Save