如何解决此异常

时间:2019-01-28 11:50:53

标签: 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.
Exception in thread "main" java.lang.ClassCastException: org.hibernate.annotations.common.reflection.java.JavaReflectionManager cannot be cast to org.hibernate.annotations.common.reflection.MetadataProviderInjector
    at org.hibernate.cfg.Configuration.createReflectionManager(Configuration.java:2589)
    at org.hibernate.cfg.Configuration.createReflectionManager(Configuration.java:2584)
    at org.hibernate.cfg.Configuration.reset(Configuration.java:300)
    at org.hibernate.cfg.Configuration.<init>(Configuration.java:291)
    at org.hibernate.cfg.Configuration.<init>(Configuration.java:295)

0 个答案:

没有答案