我在我的java程序中使用类似于这样的注解。
@annotation("some string")
public void fun(){
...
}
有没有办法在注释中传递变量而不是“某个字符串”。
例如:
String s="some string"
@annotation(s)
public void fun(){
...
}