Spring读取二种绝对与类路径的配置文件备忘

http://www.cnblogs.com/highriver/archive/2012/03/29/2423984.html


spring中读取绝对路径与类路径的二种方式:

 

<bean id="propertyConfigurer"class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
  <property name="locations">
   <list>
    <value>/WEB-INF/mail.properties</value>  
    <value>classpath: conf/sqlmap/jdbc.properties</value>
   </list>
  </property>
</bean>

你可能感兴趣的:(spring,bean)