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中沒有發(fā)現(xiàn)有這個屬性,dubug進行查看PropertyPlaceholderConfigurer發(fā)現(xiàn)Properties類中已經(jīng)有jdbc.properties中的數(shù)據(jù)了。我現(xiàn)在想知道PropertyPlaceholderConfigurer加載conf/jdbc.properties屬性文件是在什么時候哪里做的
添加回答
舉報
0/150
提交
取消