String jsonString=redisClient.get("name");
List<people> list=new ArrayList<>();
JSONArray json= JSON.parseArray(jsonString);
for (Object object:json){
people synchronization=JSONObject.parseObject(object.toString(),people.class);
list.add(synchronization);
}
String对象反序列化为List对象
最新推荐文章于 2023-03-02 17:00:02 发布