I\'m loading properties attributes from a .properties file using Spring as follows:
.properties
file: elements.properties base.module.elementToSearch=1 base
And incase you a different delimiter other than comma, you can use that as well.
@Value("#{'${my.config.values}'.split(',')}") private String[] myValues; // could also be a List
and
in your application properties you could have
my.config.values=value1, value2, value3