【发布时间】:2016-02-19 15:53:59
【问题描述】:
我在类路径中有默认应用程序属性。如果文件存在,我需要从文件的外部属性中覆盖它。
现在加载属性如下:
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:some-configuration.properties</value>
<!--...-->
</list>
</property>
</bean>
有没有办法做到这一点?
【问题讨论】:
-
@hasnae 谢谢,它对我有用
标签: java spring properties