Issue
Is there a global Jackson setting/configuration so that I do not have to annotate every class with @JsonIgnoreProperties(unknown=true)
?
Solution
This should do the job:
objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
See the APIs for ObjectMapper and DeserializationFeature for more information.
Answered By - nutlike
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.