1.网址
http://blog.163.com/wchao226@126/blog/static/69514819201051742718830/
http://thomaslee007.iteye.com/blog/167762
2.例子
spring配置文件
<bean id="placeholderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="order" value="1" /> <property name="ignoreUnresolvablePlaceholders" value="true" /> <property name="locations"> <list> <value>classpath:xxx.properties</value> </list> </property> </bean>
xxx.properties
task.parallel.max=10
使用:
<bean id="XXXAction" class="" scope="prototype"> <property name="xxx" value="${task.parallel.max}"></property> </bean>