使用fastjson将json串转为List<T>
ParameterizedTypeImpl type = new ParameterizedTypeImpl(new Type[]{PropertyCommon.class}, null, List.class); List<PropertyCommon> o = JSONObject.parseObject(savedSearchConfig.getConfigValue(), type);将一个json串转换为指定类型实体的List,...
原创
2021-07-09 15:33:33 ·
1408 阅读 ·
0 评论