数据库含有时间数据时,如果转化为JSON格式,需要使用JSON.toJSONStringWithDateFormat(listpaper, “yyyy-MM-dd HH:mm:ss“)
使用JSON.JSON.toJSONString(listpaper);时间是转换为毫秒的格式输出
使用:JSON.toJSONStringWithDateFormat(listpaper, "yyyy-MM-dd HH:mm:ss");
使用JSON.JSON.toJSONString(listpaper);时间是转换为毫秒的格式输出
使用:JSON.toJSONStringWithDateFormat(listpaper, "yyyy-MM-dd HH:mm:ss");