springboot+druid报错log4j:WARN No appenders could be found for logger (druid.sql.Connection). log4j:WA

蹉跎莫遣韶光老,人生唯有读书好。这篇文章主要讲述springboot+druid报错log4j:WARN No appenders could be found for logger (druid.sql.Connection). log4j:WA相关的知识,希望能为你提供帮助。

springboot+druid报错log4j:WARN No appenders could be found for logger (druid.sql.Connection). log4j:WA

文章图片

 
  解决方案:新建文件log4j.properties
log4j.rootLogger=DEBUG, stdout log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%5p [%t] - %m%n 

springboot+druid报错log4j:WARN No appenders could be found for logger (druid.sql.Connection). log4j:WA

文章图片

  效果图:
springboot+druid报错log4j:WARN No appenders could be found for logger (druid.sql.Connection). log4j:WA

文章图片

【springboot+druid报错log4j:WARN No appenders could be found for logger (druid.sql.Connection). log4j:WA】 

    推荐阅读