首页 > TAG信息列表 > resJson

解决fastJson反序列化问题 com.alibaba.fastjson.JSONObject cannot be cast to 的问题

问题描述: 个简单的查询逻辑即查询前先从redis取,取到后则进行反序列化。 String resJson = redisService.getString(name); if (StringUtil.isNotEmpty(resJson)) { // 反序列化 return (ResultVo)JSON.parse(resJson); } 使用了JSON.parse()来将redis中存的json字符串进