接口返回异常: cannot deserialize from Object value (no delegate- or property-based Creator)
异常内容
Cannot construct instance of `global.xxx.bean.order.response.DeliveryOrderResp` (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator)
发生原因:
DeliveryOrderResp 实体类写了有参构造方法 , 没有无参构造方法 , 导致序列化有问题
解决方案:
为实体类新增无参构造方法即可