Json object failed transfer

com.fasterxml.jackson.databind.JsonMappingException: Can not construct instance of com.huasisoft.egAffairs.JsonResult: no suitable constructor found, can not deserialize from Object value

No no-argument constructor, and then convert json when the bean class to add no-argument constructor, as JsonResult
Json transfer object failed: "No suitable constructor found for type [simple type, class com.test.faster.domain.respons
today own custom converting a json object's method, the conversion process error:

"No suitable constructor found for type [simple type, class com.test.faster.domain.response.User]: can not instantiate from JSON object (need to add/enable type information?)

Java bean reasons not provided no parameters constructor that a method in the bean can be a

Guess you like

Origin blog.csdn.net/weixin_44919928/article/details/91490331