I have an annotation like so:
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface ABC {
String something();
}
And a property file with the given property:
my.mood=HURRAY
I want to annotate a method in one of my spring beans like so:
@ABC(something = "#{my.mood}")
public String doSomething(String id)
I think I am doing it wrong though because "#{my.mood}" is not getting replaced with the actual value. Is that even possible?
Thanks for your help :)
Aucun commentaire:
Enregistrer un commentaire