svaor, I follow what you mean, I define a bean as follows:
<bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> <property name="targetClass" value="java.lang.System" /> <property name="targetMethod" value="setProperty" /> <property name="arguments"> <list> <value>system.project_name</value> <value>${system.project_name}</value> </list> </property> </bean>
system.project_name defines the system.properties file that is in the classpath
I also create ehcache.xml in the classpath, in ehcache.xml it has the following code:
<diskStore path="${java.io.tmpdir}/${system.project_name}/cache" />
but when I deploy my project, I believe that it cannot use the name system.project_name in system.properties, why?
source share