java.lang.ClassCastException: cannot assign instance of java.lang.Integer to field com.quanquan.store.dto.PMSCouponDTO.discountAmount of type java.math.BigDecimal in instance of com.quanquan.store.dto.PMSCouponDTO
…… io.xxx一大堆异常
开发中调取第三方接口的时候,传过来的JSON对象转成DTO(序列化对象)传到前端,报出了这个错
可能原因:BigDecimal是一个非序列化的对象类型,所以在序列化的时候可能会出现问题,慎用
解决方法:请清一下redis缓存

1751

被折叠的 条评论
为什么被折叠?



