You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
设置默认日期格式后,parseObject出错
Exception in thread "main" com.alibaba.fastjson.JSONException: parse date error, 2024-05-06 20:05:42, expect format yyyy-MM-dd HH:mm:ss.SSS
at com.alibaba.fastjson.JSON.parseObject(JSON.java:525)
at com.example.nativedemo.model.ResultVo.main(ResultVo.java:19)
Caused by: com.alibaba.fastjson2.JSONException: parse date error, 2024-05-06 20:05:42, expect format yyyy-MM-dd HH:mm:ss.SSS
at com.alibaba.fastjson2.JSONReader.readMillisFromString(JSONReader.java:1628)
at com.alibaba.fastjson2.reader.ObjectReaderImplDate.readDate(ObjectReaderImplDate.java:98)
at com.alibaba.fastjson2.reader.ObjectReaderImplDate.readObject(ObjectReaderImplDate.java:71)
at com.alibaba.fastjson2.reader.ORG_1_3_ResultVo.readObject(Unknown Source)
at com.alibaba.fastjson.JSON.parseObject(JSON.java:515)
... 1 more
问题描述
设置默认日期格式后,parseObject出错
Exception in thread "main" com.alibaba.fastjson.JSONException: parse date error, 2024-05-06 20:05:42, expect format yyyy-MM-dd HH:mm:ss.SSS
at com.alibaba.fastjson.JSON.parseObject(JSON.java:525)
at com.example.nativedemo.model.ResultVo.main(ResultVo.java:19)
Caused by: com.alibaba.fastjson2.JSONException: parse date error, 2024-05-06 20:05:42, expect format yyyy-MM-dd HH:mm:ss.SSS
at com.alibaba.fastjson2.JSONReader.readMillisFromString(JSONReader.java:1628)
at com.alibaba.fastjson2.reader.ObjectReaderImplDate.readDate(ObjectReaderImplDate.java:98)
at com.alibaba.fastjson2.reader.ObjectReaderImplDate.readObject(ObjectReaderImplDate.java:71)
at com.alibaba.fastjson2.reader.ORG_1_3_ResultVo.readObject(Unknown Source)
at com.alibaba.fastjson.JSON.parseObject(JSON.java:515)
... 1 more
环境信息
The text was updated successfully, but these errors were encountered: