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」的任何列表屬性。
這是爲什麼?
它實際上是如何工作的?
感謝您的閱讀!