Created
September 20, 2019 21:32
-
-
Save kevinhooke/19554473f9815baa0f01bf0c0d686818 to your computer and use it in GitHub Desktop.
JsonMappingException: No serializer found for class xyz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Class being serialized doesn't have public getters for a member property of a custom type. | |
Fix: | |
objectMapper.setVisibility(PropertyAccessor.FIELD, Visibility.ANY); | |
From: | |
https://www.baeldung.com/jackson-jsonmappingexception |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment