maven项目 SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".错误

原来项目里pom.xml内

      org.slf4j  
      slf4j-api  
      1.6.1

修改为:
    
        org.slf4j
        slf4j-nop
        1.7.25
     


而官网上刊登的解决办法是:

        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.

翻译过来如下所示
         这个错误是当org.slf4j.impl报道。StaticLoggerBinder类不能被加载到内存中。发生这种情况时,无法找到合适的SLF4J绑定类路径。slf4j-nop放置一个(且只有一个)。slf4j-simple jar。slf4j-log4j12 jar。slf4j-jdk14 jar。jar或logback-classic。jar的类路径应该解决这个问题。

你可能感兴趣的:(Java,maven,web)