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

SpringBoot3.2项目中@Cached注解key属性不支持参数名 #854

Open
linhuzhao opened this issue Jan 19, 2024 · 2 comments
Open

SpringBoot3.2项目中@Cached注解key属性不支持参数名 #854

linhuzhao opened this issue Jan 19, 2024 · 2 comments

Comments

@linhuzhao
Copy link

依赖JetCache版本为2.7.4
SpringBoot2.7支持如下key属性设置为变量名,升级至Spring Boot3.2.1之后不支持设置为变量名,只能使用“args[0]”,不知道是什么原因?
@cached(name = "mycache:", key = "#code”)
public UrlMapDTO (String code)

@linhuzhao linhuzhao changed the title SpringBoot3.0项目中@Cached注解key属性不支持参数名 SpringBoot3.2项目中@Cached注解key属性不支持参数名 Jan 19, 2024
@areyouok
Copy link
Collaborator

是不是javac没有设置-parameter参数

@linhuzhao
Copy link
Author

是的,已解决,感谢

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