Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[BUG]@JSONField不起作用 #765

Closed
1195952223 opened this issue Sep 14, 2022 · 2 comments
Closed

[BUG]@JSONField不起作用 #765

1195952223 opened this issue Sep 14, 2022 · 2 comments
Labels
bug Something isn't working fixed
Milestone

Comments

@1195952223
Copy link

问题描述

简要描述您碰到的问题。

@JSONField不起作用

环境信息

请填写以下信息:

  • 版本信息:[e.g.:Fastjson2 2.0.13]

重现步骤

如何操作可以重现该问题:

@NoArgsConstructor
@Data
public class SysTestData implements Serializable {
    private static final long serialVersionUID = 1L;

    @JSONField(name = "order")
    private Integer D_ORDER;
    @JSONField(name = "code")
    private String CODE;


    public static void main(String[] args) {
        SysTestData sysTestData = new SysTestData();
        sysTestData.setD_ORDER(111);
        sysTestData.setCODE("111");
        System.out.println(JSON.toJSONString(sysTestData));

    }
}

期待的正确结果

对您期望发生的结果进行清晰简洁的描述。

相关日志输出

请复制并粘贴任何相关的日志输出。

附加信息

如果你还有其他需要提供的信息,可以在这里填写(可以提供截图、视频等)。
image

@1195952223 1195952223 added the bug Something isn't working label Sep 14, 2022
@1195952223 1195952223 changed the title [BUG] [BUG]@JSONField不起作用 Sep 14, 2022
@wenshao wenshao added this to the 2.0.14 milestone Sep 15, 2022
@wenshao wenshao added the fixed label Sep 15, 2022
@wenshao
Copy link
Member

wenshao commented Sep 15, 2022

https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.14-SNAPSHOT/
问题已修复,请用2.0.14-SNAPSHOT版本帮忙验证,2.0.14版本预计在10月7日前发布

@wenshao
Copy link
Member

wenshao commented Sep 16, 2022

https://github.com/alibaba/fastjson2/releases/tag/2.0.14
问题已修复,请用新版本

@wenshao wenshao closed this as completed Sep 16, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working fixed
Projects
None yet
Development

No branches or pull requests

2 participants