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