redis序列化

Blade 未结 1 201
liudehua
liudehua 2024-09-23 18:13

redis存入数据 内部对象数组 的类型是 LinkedHashMap  取出来的时候会转换报错  框架的redis序列化配置

{"@class":"com.txws.xx.mall.product.domain.ProductSku","id":667,"spuId":254,"thirdSkuId":0,"skuCode":"","skuName":"一抹绿 10.2寸","skuStatus":0,"settlementPrice":["java.math.BigDecimal",0.00],"marketPrice":["java.math.BigDecimal",288.00],"skuImages":["java.util.ArrayList",["https://tw-mall.oss-cn-shanghai.aliyuncs.com/upload/img/store/13/1587618054539.jpg"]],"skuDetail":"

\"1587694048919.png\"/

\"1587618061819.jpg\"/

","reviewStatus":1,"spec":["java.util.ArrayList",[{"@class":"java.util.LinkedHashMap","name":"禧宝蛋糕-尺寸","v_id":"1538079077442701201","image":"","value":"6寸","specsId":"153807907744270120"}]],"stockQuantity":1000,"saleQuantity":0,"lowestBuy":1,"unit":"件","weight":["java.math.BigDecimal",454.00],"productArea":"江苏省XX市","sort":0,"tenantId":"000000","createDept":1671048905804529666,"createUser":1671051989511315458,"createTime":["java.util.Date",1587618068000],"updateUser":1671051989511315458,"updateTime":["java.util.Date",1695753033000],"isDeleted":false}



1条回答
提交回复