I want to have a list of values in a .properties file, ie:
my.list.of.strings=ABC,CDE,EFG
And to load it in my class directly, ie:
If you are using Spring Boot 2, it works as is, without any additional configuration.
my.list.of.strings=ABC,CDE,EFG @Value("${my.list.of.strings}") private List myList;