objectmapper ignore unknown code example
Example 1: spring jackson mapper ignore unknown fields
new ObjectMapper()
.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)
Example 2: jackson deserialization fail-on-unknown-properties true
spring.jackson.deserialization.FAIL_ON_UNKNOWN_PROPERTIES=true