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
java.time.format.DateTimeParseException: Text '2023-07-02T16:00:00.000Z' could not be parsed at index 10
at java.time.format.DateTimeFormatter.parseResolved0(DateTimeFormatter.java:2052) ~[?:?]
at java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1954) ~[?:?]
at java.time.LocalDateTime.parse(LocalDateTime.java:494) ~[?:?]
at com.alibaba.fastjson2.JSONReader.readLocalDate(JSONReader.java:904) ~[fastjson2-2.0.34.jar:?]
at com.alibaba.fastjson2.JSONReaderUTF8.readLocalDate(JSONReaderUTF8.java:5298) ~[fastjson2-2.0.34.jar:?]
at com.alibaba.fastjson2.reader.ORG_1_16_EmpDTO.readObject(Unknown Source) ~[?:?]
at com.alibaba.fastjson2.JSON.parseObject(JSON.java:1476) ~[fastjson2-2.0.34.jar:?]
at com.alibaba.fastjson2.support.spring6.http.converter.FastJsonHttpMessageConverter.readType(FastJsonHttpMessageConverter.java:111) ~[fastjson2-extension-spring6-2.0.34.jar:?]
at com.alibaba.fastjson2.support.spring6.http.converter.FastJsonHttpMessageConverter.read(FastJsonHttpMessageConverter.java:80) ~[fastjson2-extension-spring6-2.0.34.jar:?]
The text was updated successfully, but these errors were encountered:
问题描述
从前端传回的日期带有时区,在Fastjson反序列,能不能加一个配置,处理一下这个问题?
环境信息
请填写以下信息:
java.time.format.DateTimeParseException: Text '2023-07-02T16:00:00.000Z' could not be parsed at index 10
at java.time.format.DateTimeFormatter.parseResolved0(DateTimeFormatter.java:2052) ~[?:?]
at java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1954) ~[?:?]
at java.time.LocalDateTime.parse(LocalDateTime.java:494) ~[?:?]
at com.alibaba.fastjson2.JSONReader.readLocalDate(JSONReader.java:904) ~[fastjson2-2.0.34.jar:?]
at com.alibaba.fastjson2.JSONReaderUTF8.readLocalDate(JSONReaderUTF8.java:5298) ~[fastjson2-2.0.34.jar:?]
at com.alibaba.fastjson2.reader.ORG_1_16_EmpDTO.readObject(Unknown Source) ~[?:?]
at com.alibaba.fastjson2.JSON.parseObject(JSON.java:1476) ~[fastjson2-2.0.34.jar:?]
at com.alibaba.fastjson2.support.spring6.http.converter.FastJsonHttpMessageConverter.readType(FastJsonHttpMessageConverter.java:111) ~[fastjson2-extension-spring6-2.0.34.jar:?]
at com.alibaba.fastjson2.support.spring6.http.converter.FastJsonHttpMessageConverter.read(FastJsonHttpMessageConverter.java:80) ~[fastjson2-extension-spring6-2.0.34.jar:?]
The text was updated successfully, but these errors were encountered: