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

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>

原文地址:https://www.cnblogs.com/highriver/p/2423984.html