我有一个applicationContext,用于加载属性文件和作为资源注入的bean。这可以正常工作。
NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] init];
NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
paragraphStyle.lineSpacing = spacing;
[attributedString addAttribute:NSParagraphStyleAttributeName value:paragraphStyle range:NSMakeRange(0, label.text.length)];
label.attributedText = attributedString;
我想添加第二个属性文件。我已经知道不允许多个<bean id="testSettings" class="com.icat.di.testing.framework.TestSettings" scope="singleton"/>
<util:properties id="testProperties" location="classpath:${test.properties}" />
条目。
我尝试了添加属性列表的旧方法:
<util:properties
我在我的TestSettings类中添加了configProperties作为资源。这无法加载应用程序上下文。
如何在Spring 4中加载两个属性文件?
答案 0 :(得分:0)
尝试在bean中添加此属性:
<property name="ignoreUnresolvablePlaceholders" value="true"/>