I have multiple properties in my application.properties file
prop.a=A
prop.b=B
prop.c=C
// and more
Now i have to add the property A to the rest of them. I am doing this like following
@Value("${prop.a}")
private String a;
@Value("${prop.b}")
private String b;
b = new StringBuffer(b).append(a).toString();
I have to individually append each string. Can i do this in the annotation? like @Value("${prop.b}" + "${prop.a}") ?
#{${prop.a} + ${prop.b}}application.propertiesitself? Likeprop.b=${prop.a}B?