PropertyPlaceholderConfigurer如何读取配置文件路径的
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
  <property name="locations">
   <list>
    <value>/WEB-INF/mail.properties</value>  
    <value>classpath:conf/jdbc.properties</value
   </list>
  </property>
</bean>
这个配置中的locations,我在PropertyPlaceholderConfigurer中没有发现有这个属性,dubug进行查看PropertyPlaceholderConfigurer发现Properties类中已经有jdbc.properties中的数据了。我现在想知道PropertyPlaceholderConfigurer加载conf/jdbc.properties属性文件是在什么时候哪里做的
                    
                    
                添加回答
举报
0/150
	提交
		取消
	