java.lang.NoClassDefFoundError: org/apache/log4j/Level

时间:2021-04-05 15:40:12
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Level
at org.slf4j.LoggerFactory.getSingleton(LoggerFactory.java:223)
at org.slf4j.LoggerFactory.bind(LoggerFactory.java:120)
at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:111)
at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:269)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:255)
at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:152)
at com.lee.hibernate.impl.Base.main(Base.java:14)

4 个解决方案

#1


导入log4j的jar包

#4


相同问题,解决。。。。。。。。。。。。。。

#1


导入log4j的jar包

#2


#3


#4


相同问题,解决。。。。。。。。。。。。。。