使用此表示法可以指定多个文件:
<bean id="rdbmPropertiesPlacholder" lazy-init="false"> <property name="locations"> <list><value>classpath:/properties/rdbm.properties</value><value>classpath:/properties/passwords.properties</value> </list> </property> </bean>
propertyplaceholderconfigurerer只是将所有这些合并,看起来只有一个,因此您的bean定义不知道这些属性来自何处。



