标签:
<bean class=“org.springframework.beans.factory.config.PropertyPlaceholderConfigurer“> <property name=“locations“> <value>classpath:xxx.properties</value> </property> </bean>
或者
<context:Property-Placeholderlocation=”classpath:xxx.properties”/>
接下来就可以在Bean或者XML用{xxx}的方式调用了
标签:
原文地址:http://www.cnblogs.com/dycg/p/4958015.html