【发布时间】:2013-01-05 13:35:51
【问题描述】:
我有 2 个属性文件。我已经提到了context:property-placeholder 中的两个文件,就像这样......
<context:property-placeholder location="conf/ConfServer.conf,conf/LicenseSettings.properties" />
这个我也试过了
<context:property-placeholder location="conf/ConfServer.conf,conf/LicenseSettings.properties" />
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>conf/LicenseSettings.properties</value>
</list>
</property>
<property name="ignoreUnresolvablePlaceholders" value="true"/>
</bean>
我尝试过的上述两种方法都不起作用。
谁能发现错误并帮助我解决这个问题?
我已经提到了this,但对我来说效果不佳。
【问题讨论】:
-
你能单独加载它们吗?
标签: java spring spring-mvc