Spring 4.3.0.RELEASE,Hibernate 5.0.9.Final,缺少SessionFactoryImplementor.getProperties方法

Tom*_*pel 7 spring hibernate spring-4 hibernate-5.x

我在我的应用程序中使用Spring 4.3.0.RELEASE和Hibernate 5.0.9.Final,我一直在使用

java.lang.NoSuchMethodError: org.hibernate.engine.spi.SessionFactoryImplementor.getProperties()Ljava/util/Map;
Run Code Online (Sandbox Code Playgroud)

如果我更新Hibernate 5.2.0.Final,一切正常.看来Spring 4.3.0与Hibernate 5.0不兼容,这是正确的吗?我无法找到任何不支持Hibernate 5.0的内容.

在Hibernate 5.2中,存在这样的方法,在Hibernate 5.0中,该方法尚不存在(只需用URL替换5.2和5.0):http: //docs.jboss.org/hibernate/orm/5.2/javadocs/org/hibernate/发动机/ SPI/SessionFactoryImplementor.html

我创建了简单的重现器:https: //github.com/trepel/spring43-hibernate50-error

感谢你的回复.

M. *_*num 4

已经有一个问题SPR-14365涵盖了这一点。

  • 我正在使用 spring 4.3.1.RELEASE 和 hibernate 5.2.1.Final 但我仍然面临同样的问题。 (2认同)