org.slf4j.impl.StaticLoggerBinder

当启动tomcat 报错:noclass...org.slf4j.impl.StaticLoggerBinder
   查找slf4j网站:http://www.slf4j.org/codes.html#StaticLoggerBinder
发现有这么一段介绍  

Failedto load class org.slf4j.impl.StaticLoggerBinder
This error is reported when the org.slf4j.impl.StaticLoggerBinder class could not be loaded into memory. This happens when no appropriate SLF4J binding could be found on the class path. Placing one (and only one) of slf4j-nop.jar, slf4j-simple.jar, slf4j-log4j12.jar, slf4j-jdk14.jar or logback-classic.jar on the class path should solve the problem.


意思是只要有给出几个包的一个  那么StaticLoggerBinder这个类是一定能找到的,(我们平时用的应该是slf4j-nop.jar)
  但是我导入后还是报同样的错误,于是猜想可能是编译的时候没有编译成功,所以重新clean一下  然后重新编译,结果成功。希望对你有多帮助

  由于第一次用这个工具,不会上传图片,只能把文字复制过来了,请见谅。

猜你喜欢

转载自luchonglin4.iteye.com/blog/2075608
今日推荐