1
每当我们要注入的属性列表文件,我们把下面的代码块在我们的XML:位置属性
<beans:bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<beans:property name="locations">
<beans:list>
<beans:value>abc.properties</beans:value>
<beans:value>pqr.properties</beans:value>
</beans:list>
</beans:property>
</beans:bean>
然而,当我看到类PropertyPlaceholderConfigurer的源代码,我不知道查看名为“locations”的任何列表属性。
这是为什么?
它实际上是如何工作的?
感谢您的阅读!