Java Spring如何在一个bean中加载多个属性文件

Java Spring如何在一个bean中加载多个属性文件,java,spring,Java,Spring,我有一个加载属性文件的applicationContext和一个作为资源注入的bean。这是正确的 <bean id="testSettings" class="com.icat.di.testing.framework.TestSettings" scope="singleton"/> <util:properties id="testProperties" location="classpath:${test.properties}" /> 我想添加第二个属性文

我有一个加载属性文件的applicationContext和一个作为资源注入的bean。这是正确的

<bean id="testSettings" class="com.icat.di.testing.framework.TestSettings" scope="singleton"/>
<util:properties id="testProperties" location="classpath:${test.properties}" />


我想添加第二个属性文件。我已经读到有多个
尝试在您的bean中添加此属性:

    <property name="ignoreUnresolvablePlaceholders" value="true"/>


我想这个问题很久以前就在这个链接上得到了回答。事实证明,你可以有多个。我还有其他一些相互矛盾的变化。
    <property name="ignoreUnresolvablePlaceholders" value="true"/>