We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
简要描述您碰到的问题。
@Data public class TestNotice implements Serializable { private Long id; @JsonFormat( pattern = "yyyy-MM-dd HH:mm" ) private Date sendTime; } public void test(){ String s = "{\"id\":1,\"sendTime\":\"2023-03-24 11:10:11\"}"; TestNotice notice = JSON.parseObject(s, TestNotice.class); System.out.printf(notice.toString()); }
错误:Text '2023-03-24 11:10:11' could not be parsed, unparsed text found at index 16
期望: 能正常转换 或者 日期后面以0代替 2023-03-24 11:10:00
The text was updated successfully, but these errors were encountered:
improved date deserialize, for issue #1276
3003f8a
https://github.com/alibaba/fastjson2/releases/tag/2.0.27 问题已修复,请用新版本
Sorry, something went wrong.
No branches or pull requests
问题描述
简要描述您碰到的问题。
错误:Text '2023-03-24 11:10:11' could not be parsed, unparsed text found at index 16
期望: 能正常转换 或者 日期后面以0代替 2023-03-24 11:10:00
The text was updated successfully, but these errors were encountered: