
Spring MVC
Fix Jackson Unrecognized Field and Unknown Property Errors
Fix Jackson's Unrecognized field not marked as ignorable error by deciding whether to accept unknown properties, rename a field or fix the client.
6 min read
Tag
4 posts

Fix Jackson's Unrecognized field not marked as ignorable error by deciding whether to accept unknown properties, rename a field or fix the client.

Fix the Jackson error about Java 8 date/time types by registering the time module, choosing ISO strings over timestamps and setting the format in one place.

Fix Jackson's Cannot construct instance error by giving the class a creator Jackson can call, using a record, or choosing a concrete type for interfaces.

Stop the StackOverflowError that Jackson raises when entities reference each other, by returning DTOs, or by breaking the cycle with Jackson annotations.