how to load multiple xml files using spring util-properties -
i have multiple sqlqueries.xml files e.g sqlqueries.xml, sqlqueriesab.xml, sqlqueriesbc.xml , want load of them using below tag seems supports loading 1 file only.
<util:properties id="sqlqueries" location="classpath:sqlqueries.xml" />
- working. in case, have moved entries other sqlqueries*.xml file.
<util:properties id="sqlqueries" location="classpath*:sqlqueries*.xml" />
- not working..it says that, [classpath*:sqlqueries*.xml] doesn't exists.
<util:properties id="sqlqueries" location="classpath*:sqlqueries.xml,sqlqueriesab.xml, sqlqueriesbc.xml" />
- not working. error same above.
can tell me how can load multiple .xml file using util-properties or other way?
thanks
<bean id="applicationproperties" class="org.springframework.beans.factory.config.propertyplaceholderconfigurer"> <property name="locations"> <list> <value>classpath:helloworld.properties</value> <value>classpath:helloworld1.properties</value> </list> </property> <property name="ignoreresourcenotfound" value="true" /> <property name="ignoreunresolvableplaceholders" value="true" /> </bean>
should work xml file guess.
Comments
Post a Comment