mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 20:19:06 +00:00
In Spring Boot 3.x, Jackson2ObjectMapperBuilder disabled FAIL_ON_UNKNOWN_PROPERTIES. This commit aligns the behavior of use-jackson2-defaults with this. This commit also ensures that DEFAULT_VIEW_INCLUSION is disabled. It was enabled by default in Jackson 2 and then disabled by Jackson2ObjectMapperBuilder. At the time of writing, Jackson 3's configureForJackson2() method does not enable DEFAULT_VIEW_INCLUSION. Should that ever be corrected/changed in Jackson 3, this additional change in this commit ensures that the Boot will continue to have the desired default. Fixes gh-49951