list或map 打印成json 方便调试

private final Logger logger = Logger.getLogger(this.getClass());
logger.info(JSON.toJSONStringWithDateFormat(testList, "yyyy-MM-dd HH:mm:ss"));
原文地址:https://www.cnblogs.com/jwlfpzj/p/7440560.html