-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
@JSONField name 不支持 private 字段 #2866
Comments
属性私有就必须有setter方法,否则无法反序列化。 |
那A2咋就可以反序列化成功,不是这个问题吧,我觉得就是个BUG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
测试代码:
` @test
public void testPrivate() {
String json = "{"A1":1,"A2":2,"A3":3}";
`
输出:
a1:0,a2:2,a3:3
The text was updated successfully, but these errors were encountered: