PropertyPlaceholderConfigurer - defaults don't work
Hi!
I was trying to use the following configuration:
Code:
<bean name="PropertyPlaceholderConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" >
<property name="properties">
<props>
<prop key="msx.db">hsqldb</prop>
</props>
</property>
<property name="locations">
<list>
<value>classpath:local.properties</value>
<value>classpath:${msx.db}.properties</value>
</list>
</property>
<property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE" />
</bean>
It works perfectly if I set the system property msx.db. If I don't set it, it seems to disregard the <property name="properties">...</property> part, which is supposed to be the "default" properties.
Any idea why?