- spring中配置:
<bean id="configProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean">
<property name="locations">
<list>
<value>
classpath:other.properties
</value>
</list>
</property>
</bean>
- 注入
@Value("#{configProperties['epack.url']}")
private String epackURL;