gpt4 book ai didi

hibernate - 无法加载类 "org.slf4j.impl.StaticLoggerBinder"

转载 作者:行者123 更新时间:2023-12-01 22:19:54 25 4
gpt4 key购买 nike

当我尝试运行 Hibernate 时,我在控制台中收到以下消息。

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.

但是 hibernate 工作正常。我的项目有什么问题吗?我使用 Eclipse(Helios)、Hibernate 3.6.8 。我使用这些jar文件:antlr-2.7.6,commons-collections-3.1,dom4j-1.6.1,hibernate3,hibernate-jpa-2.0-api-1.0.1.Final,javassist-3.12.0.GA,jta- 1.1、slf4j-api-1.6.1

最佳答案

此错误表明在类路径上找不到适当的 SLF4J 绑定(bind)。将 slf4j-nop.jar、slf4j-simple.jar、slf4j-log4j12.jar、slf4j-jdk14.jar 或 logback-classic.jar 之一(且仅一个)放在类路径上应该可以解决问题。

参见http://www.slf4j.org/index.html

关于hibernate - 无法加载类 "org.slf4j.impl.StaticLoggerBinder",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7951610/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com