SH整合异常:SessionFactoryImplementor.getProperties()Ljava/util/Map

来源:互联网 发布:wp 添加js 编辑:程序博客网 时间:2024/06/05 18:58

spring4.3.0 整合 hibernate5.1.0 异常:

java.lang.NoSuchMethodError: org.hibernate.engine.spi.SessionFactoryImplementor.getProperties()Ljava/util/Map;


spring和hibernate版本兼容性问题,提升spring版本到[spring 4.3.1]可修复问题


spring官方描述:

https://jira.spring.io/browse/SPR-14365

==================================

附加解决办法:

<property name="autodetectDataSource" value="false" />

<bean id="transactionManager" class="org.springframework.orm.hibernate5.HibernateTransactionManager"><property name="autodetectDataSource" value="false" /></bean>


0 0