Define List Bean Spring Java Example
To define List as bean in Spring framework is very straight forward as below:
Define your bean:
<util:list id="javaHonkList" value-type="java.lang.String"> <value>Javahonk1</value> <value>Javahonk2</value> <value>Javahonk3</value> </util:list>
and access through java as below:
@Resource(name = "javaHonkList") private List<String> javaHonkList;
Reference: