现在的位置: 首页 > 综合 > 正文

spring 加载 properties文件

2013年10月28日 ⁄ 综合 ⁄ 共 235字 ⁄ 字号 评论关闭

<bean id="propertyMananger" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
  <property name="locations">
   <list>
    <value>WebRoot/WEB-INF/app-config/log4j.properties</value>
   </list>
  </property>
 </bean>

抱歉!评论已关闭.