应用程序在 tcServer 中工作正常,但出现以下错误:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
类路径的含义是什么?在哪里可以找到它?
我是新手,请解释一下。
最佳答案
该错误意味着您缺少用于实际实现 SLF4J 的 JAR 文件。您应该做的是下载类似 Logback 的实现或Log4j (使用 log4j-slf4j-impl JAR,而不是 log4j-to-slf4j)并将其添加到 tcServer 中的 lib
目录中。
您的类路径只是各种库 JAR,其中包含补充您的应用程序的已编译 Java 代码。查看右侧的相关问题,了解丢失 SLF4J JAR 文件的其他类似问题。
关于java - SLF4J:无法加载类 "org.slf4j.impl.StaticLoggerBinder",API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22441068/