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

fastjson2不支持。尝试使用自定义注解生成报错 #50

Open
millergo opened this issue Dec 6, 2023 · 1 comment
Open

fastjson2不支持。尝试使用自定义注解生成报错 #50

millergo opened this issue Dec 6, 2023 · 1 comment

Comments

@millergo
Copy link

millergo commented Dec 6, 2023

插件目前使用的fastjson的1.x版本。但是现在最新的fastjson已经是fastjson2了。尝试使用自定义注解解决,但是无法使用。自定义注解配置如下:
@com.alibaba.fastjson2.annotation.JSONField\s*(\sname\s=\s*"{filed}"\s*)
@com.alibaba.fastjson2.annotation.JSONField(name="{filed}")

这两种方式配置都无法实现将字符串转换为Java bean 对象,希望处理下,谢谢。

@lrbmike
Copy link

lrbmike commented Apr 16, 2024

我自己最近fork出来改了支持 fastjson2 的选项,但是是离线安装的 jar,你试试能不能用
GsonFormatPlus2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants