Skip to content

Instantly share code, notes, and snippets.

@kevinhooke
Created September 20, 2019 21:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinhooke/19554473f9815baa0f01bf0c0d686818 to your computer and use it in GitHub Desktop.
Save kevinhooke/19554473f9815baa0f01bf0c0d686818 to your computer and use it in GitHub Desktop.
JsonMappingException: No serializer found for class xyz
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