Json serialization and deserialization words Precautions - No argument constructor

Json serialization and de-serialization of words Precautions

problem

Today redis use as a cache. The data is written to redis need for serialization scheme. Examples find online, using the json serialization. Copy down. Discovery can be written correctly. But I can not read.

Error message:

Unable to find the corresponding constructor.

the reason

deserialization json, if desired, presence or absence of a corresponding reference entity class constructor.

Guess you like

Origin www.cnblogs.com/jimmyfan/p/11977159.html