log4j:WARN No appenders could be found for logger
程序员文章站
2022-05-23 22:13:44
...
Log4j错误:
log4j:WARN No appenders could be found for logger (org.springframework.web.client.RestTemplate).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
解决办法:
(1)检查Web项目中web.xml配置位置,log4j Listener必须在contextLoaderListener之前;
(2)将log4j.properties文件复制到/WEB-INF/classes目录下即可;
推荐阅读
-
No handlers could found for logger "flask_migrate"错误
-
关于运行ssm环境maven插件tomcat时出现的log4j:WARN No appenders could be found for logger
-
C3P0 log4j:WARN No appenders could be found for logger (com.mchange.v2.log.MLog)
-
C3P0 log4j:WARN No appenders could be found for logger (com.mchange.v2.log.MLog)
-
java API操作HDFS出现log4j:WARN No appenders could be found.............
-
mxnet使用mxboard可视化模型权重参数报错:No handlers could be found for logger “mxboard.event_file_writer“
-
log4j:WARN No appenders could be found for logger
-
log4j:WARN No appenders could be found for logger
-
关于运行ssm环境maven插件tomcat时出现的log4j:WARN No appenders could be found for logger
-
WARN No appenders could be found for logger的解决方法