当前位置: 首页 > 工具软件 > Construct > 使用案例 >

错误:Cannot construct instance of xxxxx(no Creators, like default construct, exist)

尉迟安民
2023-12-01

错误描述: 序列化错误

 com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `com.zookeeper.dubbo.register.consumer.domain.Zkuser` (no Creators, like default construct, exist): cannot deserialize from Object value (no delegate- or property-based Creator)

实体类Zkuser 需要有默认无参的构造函数

解决方案:

public Zkuser() {
}
 类似资料: