标签:info dea div shm new 显示 ide _id hash
【解决办法】:将list放入map中,再输出Map
1 Map result = new HashMap(); 2 result.put("result", bussDataList); 3 log.info(JSON.toJSONString(result));
【结果】:
1 { 2 "result": [ 3 { 4 "id": 1, 5 "update_time": 1611649568000, 6 "create_time": 1611649558000, 7 "updator_name": "", 8 "updator_id": 0, 9 "creator_id": 111, 10 "creator_name": "wqb", 11 }, 12 { 13 "id": 2, 14 "update_time": 1611649568000, 15 "create_time": 1611649558000, 16 "updator_name": "", 17 "updator_id": 0, 18 "creator_id": 111, 19 "creator_name": "wqb", 20 } 21 ] 22 }
欧克 OK
List转json 日志输出时,总是丢掉了最前面的方括号“[”造成IDEA 无法正常显示JSONArray
标签:info dea div shm new 显示 ide _id hash
原文地址:https://www.cnblogs.com/bridgestone29-08/p/14349610.html