top of page

Reading a List from properties file and load from Spring with @Value


What I learned today. (May 24, 2019)

Reading a List from properties file and load from spring with @Value.

In properties file,



countryList=Japan,Korea,China

In Java, class file,


@Value("#{'${countryList}'.split(',')}")
private List<String> countryList;

Single post: Blog_Single_Post_Widget
bottom of page