Java PropertyPlaceHolderConfigure类中的locations属性
每当我们想要注入属性列表文件时,我们都会在xml中放入以下代码块:Java PropertyPlaceHolderConfigure类中的locations属性,java,spring,Java,Spring,每当我们想要注入属性列表文件时,我们都会在xml中放入以下代码块: <beans:bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <beans:property name="locations"> <beans:list> <beans:v
<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>
abc.properties
pqr.properties
但是,当我看到PropertyPlaceHolderConfigure类的源代码时,我没有看到任何名为“locations”的列表属性
为什么会这样
它实际上是如何工作的
谢谢你的阅读 它是继承自的
沃利在哪里?它在继承的世界里
沃利在哪里