@Value("#{configProperties['remote.refresh.port']}")
private String remoteRefreshPort;
<!-- 加载属性文件 -->
<bean id="configProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean">
<property name="locations">
<list>
<value>classpath:jdbc.properties</value>
<value>classpath:pdsci.properties</value>
</list>
</property>
</bean>
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer">
<property name="properties" ref="configProperties" />
</bean>
pdsci.properties
remote.refresh.host=www.develop.com
remote.refresh.port=8080