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>