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
感谢你的回复.
| 归档时间: |
|
| 查看次数: |
3811 次 |
| 最近记录: |