I had the same problem and Alex Miller's solution helped me. I get the value from the properties file using this technique:
<bean
class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property name="targetObject">
<bean
class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property name="targetClass" value="java.lang.System" />
<property name="targetMethod" value="getProperties" />
</bean>
</property>
<property name="targetMethod" value="putAll" />
<property name="arguments">
<util:properties>
<prop key="net.sf.ehcache.disabled">${net.sf.ehcache.disabled:false}</prop>
</util:properties>
</property>
</bean>
source
share