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

来源:互联网 发布:淘宝网店收费吗 编辑:程序博客网 时间:2024/06/05 01:10
在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下
原创粉丝点击