String s=JSON.toJSONString(obj);

改为

String s=JSON.toJSONStringWithDateFormat(obj,"yyyy-MM-dd HH:mm:ss");

 posted on 2023-02-21 13:35  会飞的金鱼  阅读(131)  评论(0)    收藏  举报