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
简要描述您碰到的问题。 你好 在使用fastjson 2.0.52 过程中发现一个与lombok的@AllArgsConstructor注解冲突的问题:带有@AllArgsConstructor注解会导致 @JSONField无效
@Setter @Getter @AllArgsConstructor public class User { @JSONField(name = "user_name") private String userName; @Override public String toString() { return "User{" + "userName='" + userName + '\'' + '}'; } } public static void main(String[] args) { String str1 = "{\n" + "\"user_name\":\"zs\"\n" + "}"; User user = JSONObject.parseObject(str1, User.class); System.out.println(user); } 正常: User{userName='zs'} 异常: User{userName='null'}
请填写以下信息:
The text was updated successfully, but these errors were encountered:
https://github.com/alibaba/fastjson2/releases/tag/2.0.53 问题已修复,请用新版本
Sorry, something went wrong.
No branches or pull requests
问题描述
简要描述您碰到的问题。
你好 在使用fastjson 2.0.52 过程中发现一个与lombok的@AllArgsConstructor注解冲突的问题:带有@AllArgsConstructor注解会导致
@JSONField无效
环境信息
请填写以下信息:
The text was updated successfully, but these errors were encountered: