spring,log4j报错,WARN No appenders could be found for logger的解决方法
?
在spring的web项目中常常会在tomcat启动的时候出现这种提示:
<!-- 以下3项参数与log4j的配置相关 --> <context-param> <param-name>log4jConfigLocation</param-name> <param-value>classpath:log4j.properties</param-value> </context-param> <context-param> <param-name>log4jRefreshInterval</param-name> <param-value>60000</param-value> </context-param> <listener> <listener-class> org.springframework.web.util.Log4jConfigListener </listener-class> </listener> <!-- end --> <listener> <listener-class> org.springframework.web.context.ContextLoaderListener </listener-class> </listener>?