Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Jackson based XML serialization and Jackson2ObjectMapperBuilder #1661

Closed
wants to merge 1 commit into from

Conversation

sdeleuze
Copy link
Contributor

@sdeleuze sdeleuze commented Oct 3, 2014

This commit introduces support for Jackson based XML serialization, using the
new MappingJackson2XmlHttpMessageConverter provided by Spring Framework
4.1. It is automatically activated when Jackson XML extension is detected on the
classpath.

Jackson2ObjectMapperBuilder is now used to create ObjectMapper and XmlMapper
instances with the following customized properties:

  • MapperFeature.DEFAULT_VIEW_INCLUSION is disabled
  • DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES is disabled

JodaModuleAutoConfiguration and Jsr310ModuleAutoConfiguration have been removed
since their behaviors are now handled directly by the ObjectMapper builder.

In addition to the existing @Bean of type ObjectMapper support, it is now
possible to customize Jackson based serialization properties by declaring
a @Bean of type Jackson2ObjectMapperBuilder.

Fixes gh-1237 gh-1580 gh-1644

This commit introduces support for Jackson based XML serialization, using the
new MappingJackson2XmlHttpMessageConverter provided by Spring Framework
4.1. It is automatically activated when Jackson XML extension is detected on the
classpath.

Jackson2ObjectMapperBuilder is now used to create ObjectMapper and XmlMapper
instances with the following customized properties:
 - MapperFeature.DEFAULT_VIEW_INCLUSION is disabled
 - DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES is disabled

JodaModuleAutoConfiguration and Jsr310ModuleAutoConfiguration have been removed
since their behaviors are now handled directly by the ObjectMapper builder.

In addition to the existing @bean of type ObjectMapper support, it is now
possible to customize Jackson based serialization properties by declaring
a @bean of type Jackson2ObjectMapperBuilder.

Fixes gh-1237 gh-1580 gh-1644
@dsyer dsyer removed the in progress label Oct 6, 2014
@wilkinsona wilkinsona self-assigned this Oct 6, 2014
@wilkinsona wilkinsona modified the milestones: 1.2.0, 1.2.0.M2 Oct 6, 2014
@wilkinsona
Copy link
Member

Thanks, Sébastien. Merged as 315213e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update JacksonAutoConfiguration with nicer defaults
3 participants