杂项笔记记录
//将任意数据转为json字符串
String s = JSON.toJSONString(catalogJSONFromDb);
//TypeReference 实现指定类型转换
Map<String, List<Catelog2Vo>> result = JSON.parseObject(catalogJSON, new TypeReference<Map<String, List<Catelog2Vo>>>() {});
标题二
aaaa
微信扫一扫
//将任意数据转为json字符串
String s = JSON.toJSONString(catalogJSONFromDb);
//TypeReference 实现指定类型转换
Map<String, List<Catelog2Vo>> result = JSON.parseObject(catalogJSON, new TypeReference<Map<String, List<Catelog2Vo>>>() {});
aaaa
相关推荐