I have my colour.roperties file as
rose = red
lily = white
jasmine = pink
I need to get the value for colour as
String flower = runTimeFlower;
@Value("${flower}) String colour;
where flower value we will get at runtime. How can I do this in java Spring. I need to get a single value (from among 50 values defined in the properties file )at runtime based on the user input. If i cannot use @Value , Could you tell me other ways to handle this please?