Skip to content

GH-680: Use enhanced ObjectMapper by default #1053

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

Merged
merged 1 commit into from
Mar 29, 2019

Conversation

artembilan
Copy link
Member

Fixes #680

  • Introduce JacksonUtils factory class and use its
    enhancedObjectMapper() whenever we rely on the default ObjectMapper.
  • The JacksonUtils instantiate ObjectMapper with
    MapperFeature.DEFAULT_VIEW_INCLUSION &
    DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, and also registers
    well-known data type modules found in classpath.

Fixes spring-projects#680

* Introduce `JacksonUtils` factory class and use its
`enhancedObjectMapper()` whenever we rely on the default `ObjectMapper`.
* The `JacksonUtils` instantiate `ObjectMapper` with
`MapperFeature.DEFAULT_VIEW_INCLUSION` &
`DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES`, and also registers
well-known data type modules found in classpath.
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.

2 participants