【解决办法】:将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