Java - Spring Annotation param from property value
Following is my @Secured
annotation i want to define string "USER_ABC" in .properties file and use it over here like @Secured({myProp})
but it gives me error
@Value('${my.property}') private string myProp;
@Secured({myProp,"ADMIN_123"})
public void mySecureMethod(){
}
instead of
@Secured({"USER_ABC","ADMIN_123"})
public void mySecureMethod(){
}
any solution appreciated in advance.