Intellij idea 带参数检测的自定义注释中的Intellij Spring表达式语言

Intellij idea 带参数检测的自定义注释中的Intellij Spring表达式语言,intellij-idea,spring-annotations,spring-el,Intellij Idea,Spring Annotations,Spring El,当我使用@Cacheable annotation时,intellij会检测参数,如下所示: A类{ 私人字符串a; } @GetMapping(“/111”) @可缓存(cacheNames=“a”,key=“#{a.a}”) 公共字符串ha(@RequestBody A){ 返回“”; } 但当我添加自定义注释时,intellij向我显示“无法解析变量‘a’” A类{ 私人字符串a; } @操作日志(用户名=“#{a.a}”) 公共字符串ha(@RequestBody A){ 返回“”;

当我使用@Cacheable annotation时,intellij会检测参数,如下所示:

A类{
私人字符串a;
}
@GetMapping(“/111”)
@可缓存(cacheNames=“a”,key=“#{a.a}”)
公共字符串ha(@RequestBody A){
返回“”;
}
但当我添加自定义注释时,intellij向我显示“无法解析变量‘a’”

A类{
私人字符串a;
}
@操作日志(用户名=“#{a.a}”)
公共字符串ha(@RequestBody A){
返回“”;
}
@Target({ElementType.METHOD})
@保留(RetentionPolicy.RUNTIME)
@继承的
@记录
公共@接口操作日志{
@语言(“SpEL”)
字符串username()默认为“”;
}