<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配置
原文地址:https://www.cnblogs.com/deptop/p/9334744.html