简体   繁体   中英

Can not find a (Map) Key deserializer for type

I am getting exception while read like oMapper.readValue(jsonString, new MyData().getClass());

org.codehaus.jackson.map.JsonMappingException: Can not find a (Map) Key deserializer for type.

How to fix it?

What does MyData look like? It appears to have a property with type Map , which has a custom key type?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM