Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
06826603
Commit
06826603
authored
Jun 14, 2015
by
Eddú Meléndez
Committed by
Stephane Nicoll
Jun 15, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add documentation for serialization-inclusion
Document `spring.jackson.serialization-inclusion`. Closes gh-3224
parent
c2b606de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
howto.adoc
spring-boot-docs/src/main/asciidoc/howto.adoc
+4
-1
No files found.
spring-boot-docs/src/main/asciidoc/howto.adoc
View file @
06826603
...
...
@@ -971,7 +971,7 @@ Spring Boot has also some features to make it easier to customize this behavior.
You can configure the `ObjectMapper` and `XmlMapper` instances using the environment.
Jackson provides an extensive suite of simple on/off features that can be used to
configure various aspects of its processing. These features are described in
five
enums in
configure various aspects of its processing. These features are described in
six
enums in
Jackson which map onto properties in the environment:
|===
...
...
@@ -991,6 +991,9 @@ Jackson which map onto properties in the environment:
|`com.fasterxml.jackson.databind.SerializationFeature`
|`spring.jackson.serialization.<feature_name>=true\|false`
|`com.fasterxml.jackson.annotation.JsonInclude.Include`
|`spring.jackson.serialization-inclusion=always\|non_null\|non_default\|non_empty`
|===
For example, to enable pretty print, set `spring.jackson.serialization.indent_output=true`.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment