使用IDEA的Language injections 方式:
1、鼠标移动到注解的字段上,选择 Language injections --> Spring EL
2、直接在 注解类 的field 上 添加 @Language(“SpEL”) 就ok了,这种方式永远有效
参考
Spring Expression Language in custom annotations With parameter detection.
https://intellij-support.jetbrains.com/hc/en-us/community/posts/360000011230-Spring-Expression-Language-in-custom-annotations-https://www.jetbrains.com/help/idea/using-language-injections.html.
Spring Expression Language in custom annotations With parameter detection