搭一个框架遇到的错误是真滴多,搭了一个ssh,各种版本神魔乱舞,我这里用的是spring5.1.3+hibernate4.3,所以报了这个错误。

这个错误的原因主要是因为hibernate4.3以后,JtaPlatform的路径为org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform了,而spring5需要的是org.hibernate.service.jta.platform.spi.JtaPlatform,所以需要把hibernate 的版本改为4.2.X

maven依赖:

		 <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-core</artifactId>
            <version>4.2.21.Final</version>
        </dependency>

架包地址:
https://pan.baidu.com/s/1Qq6Gc7ZoQcmH0pACdgyQtg

更多推荐