Hello,
I'm currently converting over our spring config file to use the context property placeholder to populate the bean properties from a properties file. eg :
<contextroperty-placeholder location="classpath:spring.properties" />
<bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close">
<property name="driverClass" value="${db.class}"/>
....
A few of the beans have properties that are collections, (mostly List<String>). These were previously configured via the xml collection markup <value>blah1</value><value>blah2</value><value>blah3</value>.
I've tried putting the xml into the properties file using the normal method, but I believe this means that it skips the phase during startup where the xml is converted to a list.
Does anyone know a way to set collection properties on beans via a properties file?
Many thanks in advance!
p.s sorry for the typo in the subject!


roperty-placeholder location="classpath:spring.properties" />
Reply With Quote