【发布时间】:2010-12-08 15:44:01
【问题描述】:
我有多个需要参考的属性文件。下面我可以参考类路径中的两个。
如何在 jar 文件中引用属性文件?
<bean id="placeholderConfig" name="placeholderConfig"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:config/my_test.properties</value>
<value>classpath:config/some_other.properties</value>
</list>
</property>
【问题讨论】:
标签: spring properties