top of page

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

  • Writer: Jonathan
    Jonathan
  • May 24, 2019
  • 1 min read

Updated: Feb 25, 2022


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