I have got 2 properties file with me. I have mentioned both the files in the context:property-placeholder like this…
<context:property-placeholder location="conf/ConfServer.conf,conf/LicenseSettings.properties" />
Also I have tried this
<context:property-placeholder location="conf/ConfServer.conf,conf/LicenseSettings.properties" />
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>conf/LicenseSettings.properties</value>
</list>
</property>
<property name="ignoreUnresolvablePlaceholders" value="true"/>
</bean>
Both the above mentioned methods I have tried are not working.
Can anyone spot out the mistake and help me out of this?
I already referred to this, but it didn’t work good for me.
You can specify multiple
context:property-placeholdertags within your configuration file. You can also specify which will be loaded first using theorderattribute.