Support Jackson based XML serialization and Jackson2ObjectMapperBuilder #1661
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit introduces support for Jackson based XML serialization, using the
new
MappingJackson2XmlHttpMessageConverter
provided by Spring Framework4.1. It is automatically activated when Jackson XML extension is detected on the
classpath.
Jackson2ObjectMapperBuilder
is now used to createObjectMapper
andXmlMapper
instances with the following customized properties:
MapperFeature.DEFAULT_VIEW_INCLUSION
is disabledDeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES
is disabledJodaModuleAutoConfiguration
andJsr310ModuleAutoConfiguration
have been removedsince their behaviors are now handled directly by the
ObjectMapper
builder.In addition to the existing
@Bean
of typeObjectMapper
support, it is nowpossible to customize Jackson based serialization properties by declaring
a
@Bean
of typeJackson2ObjectMapperBuilder
.Fixes gh-1237 gh-1580 gh-1644