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

Posted 花l信风

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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下。

以上是关于log4j.properties路径修改后web.xml配置的主要内容,如果未能解决你的问题,请参考以下文章