当报这个错时,就很难看到我们自己输出的日志,系统运行情况后台无法得到输出。解决方案是加入以下依赖:

Xml代码  解决错误: Failed to load class "org.slf4j.impl.StaticLoggerBinder"
  1. <dependency>  
  2.       <groupId>org.slf4j</groupId>  
  3.       <artifactId>slf4j-log4j12</artifactId>  
  4.       <version>1.7.5</version>  
  5.       <scope>provided</scope>  
  6.     </dependency>  
  7.     <dependency>  
  8.       <groupId>log4j</groupId>  
  9.       <artifactId>log4j</artifactId>  
  10.       <version>1.2.14</version>  
  11.       <scope>provided</scope>  
  12.     </dependency>  

 现在再运行一下试试,是不是能看到想要的日志信息了呢?!





相关文章:

  • 2021-09-13
  • 2022-12-23
  • 2021-09-09
  • 2021-07-20
  • 2021-11-28
  • 2021-12-06
猜你喜欢
  • 2022-02-09
  • 2022-12-23
  • 2021-10-19
  • 2022-12-23
  • 2021-09-11
相关资源
相似解决方案