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
SysUserLogin sysUserLogin = new SysUserLogin(); sysUserLogin.setCreateTime(new Date()); sysUserLogin.setLoginName("测试一下"); System.out.println(JsonStream.serialize(sysUserLogin));
Exception in thread "main" com.jsoniter.spi.JsonException: com.jsoniter.spi.JsonException: com.jsoniter.spi.JsonException: getter name conflict: normalizedYear
把日期字段注释掉就可以了,但是中文又被转了 {"loginName":"\u6d4b\u8bd5\u4e00\u4e0b"}
本来想实现一个SpringMVC的messageConvert。试用了一下什么都设置,带Date类型的就直接报错,没有研究源码前还是不敢在项目中使用
The text was updated successfully, but these errors were encountered:
你预期是什么?
Sorry, something went wrong.
No branches or pull requests
SysUserLogin sysUserLogin = new SysUserLogin();
sysUserLogin.setCreateTime(new Date());
sysUserLogin.setLoginName("测试一下");
System.out.println(JsonStream.serialize(sysUserLogin));
Exception in thread "main" com.jsoniter.spi.JsonException: com.jsoniter.spi.JsonException: com.jsoniter.spi.JsonException: getter name conflict: normalizedYear
把日期字段注释掉就可以了,但是中文又被转了
{"loginName":"\u6d4b\u8bd5\u4e00\u4e0b"}
本来想实现一个SpringMVC的messageConvert。试用了一下什么都设置,带Date类型的就直接报错,没有研究源码前还是不敢在项目中使用
The text was updated successfully, but these errors were encountered: