<!-- 配置log4j -->
<bean id="log4jInitializer" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean" depends-on="propertyConfigurer">
<property name="targetClass" value="org.springframework.util.Log4jConfigurer" />
<property name="targetMethod" value="initLogging" />
<property name="arguments">
<list>
<!-- 配置文件位置 -->
<value>${config_path}/log4j.xml</value>
<!-- refreshInterval 检查是否配置文件的是否被修改,单位为毫秒-->
<value>300000</value>
</list>
</property>
</bean>