-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] #413
Comments
wenshao
added a commit
that referenced
this issue
Jun 6, 2022
wenshao
added a commit
that referenced
this issue
Jun 6, 2022
问题已经修复,你用2.0.7-SNAPSHOT先验证一下 |
maven的settings文件配置可以发一下,我配置如下,依赖一直下载不成功 <mirror>
<id>nexus-snapshots</id>
<mirrorOf>Snapshots</mirrorOf>
<name>Nexus snapshots</name>
<url> https://oss.sonatype.org/content/repositories/snapshots/</url>
</mirror> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
反序列unixtime时间字符串到java.util.Date报错
环境信息
重现步骤
JSON.parseObject
方法Exception in thread "main" java.lang.IllegalArgumentException: Unknown pattern letter: i
错误期待的正确结果
反序列化成功
相关日志输出
Exception in thread "main" java.lang.IllegalArgumentException: Unknown pattern letter: i
at java.time.format.DateTimeFormatterBuilder.parsePattern(DateTimeFormatterBuilder.java:1672)
at java.time.format.DateTimeFormatterBuilder.appendPattern(DateTimeFormatterBuilder.java:1581)
at java.time.format.DateTimeFormatter.ofPattern(DateTimeFormatter.java:536)
at com.alibaba.fastjson2.reader.FieldReaderDateMethod.getFormatter(FieldReaderDateMethod.java:117)
at com.alibaba.fastjson2.reader.FieldReaderDateMethod.readFieldValue(FieldReaderDateMethod.java:76)
at com.alibaba.fastjson2.reader.ObjectReader1.readObject(ObjectReader1.java:242)
at com.alibaba.fastjson2.JSON.parseObject(JSON.java:421)
at com.example.jdbc.UnixTimeTest.main(UnixTimeTest.java:22)
The text was updated successfully, but these errors were encountered: