Skip to content
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

[FEATURE] apt codegen提供debug选项 #2575

Closed
wenshao opened this issue May 15, 2024 · 1 comment
Closed

[FEATURE] apt codegen提供debug选项 #2575

wenshao opened this issue May 15, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@wenshao
Copy link
Member

wenshao commented May 15, 2024

Annotation定义

@Retention(RetentionPolicy.RUNTIME)
public @interface JSONCompiled {
    boolean debug() default false;
}
  • 配置
@JSONCompiled(debug=true)
class Bean {
     public int id;
}
  • 效果
    将codegen的代码用java.txt的方式输出,方便看生产代码的逻辑
@wenshao wenshao added the enhancement New feature or request label May 15, 2024
@wenshao wenshao added this to the 2.0.51 milestone May 15, 2024
@yanxutao89 yanxutao89 self-assigned this May 15, 2024
@wenshao
Copy link
Member Author

wenshao commented Jun 1, 2024

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

@wenshao wenshao closed this as completed Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants