I am trying to fetch a property from the properties file in java code written in mule.
Class Example {
@NotBlank("message" = "${prop1}")
String key1;
String key2;
}
prop1 is a property stored in properties file
prop1 = " 001 | key1 cannot be blank"
I want prop1 to be resolved as 001 | key1 cannot be blank. ${propname} doesn't work. I can't use the value annotation as I want to save the value of the property in the message.