batteryParamInfo.setDischargeMosStatus(1);
redisService.set("test", JSONUtil.toJsonStr(batteryParamInfo));
// BatteryParamInfo batteryParam = (BatteryParamInfo) redisService.get("test"); 错误转换
Object test
Hutool工具包对象转Json字符串存储,在取出来时不能直接转换
最新推荐文章于 2024-05-09 21:48:39 发布
batteryParamInfo.setDischargeMosStatus(1); redisService.set("test", JSONUtil.toJsonStr(batteryParamInfo));// BatteryParamInfo batteryParam = (BatteryParamInfo) redisService.get("test"); 错误转换 Object test = redisService.get(...
摘要由CSDN通过智能技术生成