Hibernate3包问题org/slf4j/impl/StaticLoggerBinder

本文介绍了解决Java应用程序中出现的NoClassDefFoundError错误的方法。具体问题为尝试运行程序时遇到org/slf4j/impl/StaticLoggerBinder类未找到的异常。解决方案是下载并添加slf4j-nop-1.5.2.jar依赖包。

Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder

 

下载一个包:slf4j-nop-1.5.2.jar

H:\jdk\bin\java.exe -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true "-Dmanagement.endpoints.jmx.exposure.include=*" "-javaagent:D:\IDEA\IntelliJ IDEA 2023.1\lib\idea_rt.jar=60134:D:\IDEA\IntelliJ IDEA 2023.1\bin" -Dfile.encoding=UTF-8 -classpath C:\Users\admins\AppData\Local\Temp\classpath402152749.jar com.OaApplication SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/H:/MVN/apache-maven-3.6.1/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/H:/MVN/apache-maven-3.6.1/org/apache/logging/log4j/log4j-slf4j-impl/2.13.3/log4j-slf4j-impl-2.13.3.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder] 2025-03-27 15:46:59.821 INFO 24032 - [background-preinit] [o.h.validator.internal.util.Version,<clinit>,21] : HV000001: Hibernate Validator 6.1.7.Final 2025-03-27 15:46:59.927 INFO 24032 - [restartedMain] [o.s.b.d.e.DevToolsPropertyDefaultsPostProcessor,logTo,225] : Devtools property defaults active! Set &#39;spring.devtools.add-properties&#39; to &#39;false&#39; to disable . ____ _ __ _ _ /\\ / ___&#39;_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | &#39;_ | &#39;_| | &#39;_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) &#39; |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.3.12.RELEASE) 2025-03-27 15:47:01.949 INFO 24032 - [restartedMain] [o.s.c.c.c.ConfigServicePropertySourceLocator,getRemoteEnvironment,257] : Fetching config from server at : http://localhost:8888 2025-03-27 15:47:04.138 INFO 24032 - [restartedMain] [o.s.c.c.c.ConfigServicePropertySourceLocator,getRemoteEnvir
最新发布
03-28
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值