log4j.properties路径修改后web.xml配置

<listener>
<listener-class>
org.springframework.web.util.Log4jConfigListener
</listener-class>
</listener>
<context-param>
<param-name>log4jConfigLocation</param-name>
<param-value>classpath:log4j.properties</param-value>
</context-param>

此时,log4j.properties在根目录src下。

猜你喜欢

转载自www.cnblogs.com/deptop/p/9334744.html
今日推荐