You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i use jackson:2.10.1,
I want to serialize an object, This object contains a Map attribute, the key of this Map is my customized object.
When I deserialize the result, I will report this error. Can not find a (Map) Key deserializer for type
I found that when deserializing, if the key of the map is a custom object, this error will be reported, as if the key of the map can only be the base type.
Of course, what I mean by a map needs to be an attribute of an object, because at this point, the key of the map will contain contextual information.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
when i use jackson:2.10.1,
I want to serialize an object, This object contains a Map attribute, the key of this Map is my customized object.
When I deserialize the result, I will report this error.
Can not find a (Map) Key deserializer for type
I found that when deserializing, if the key of the map is a custom object, this error will be reported, as if the key of the map can only be the base type.
Of course, what I mean by a map needs to be an attribute of an object, because at this point, the key of the map will contain contextual information.
Beta Was this translation helpful? Give feedback.
All reactions