fastjson序列化失败

nested exception is com.alibaba.fastjson.JSONException: create instance error, null, public com.hmall.common.pojo.ItemDoc(com.hmall.common.pojo.Item)] with root cause。

原因是实体类中只加了@Data,忘记加@AllArgsConstructor,@NoArgsConstructor

posted @ 2023-09-02 17:22  tianjifei123  阅读(195)  评论(0)    收藏  举报