Spring Boot 1.5.x 与 Hibernate 4.x 的兼容性

Compatibility of Spring Boot 1.5.x with Hibernate 4.x

我们已将 Spring Boot 从 1.2.4 升级到 1.5.8,这会自动将 Hibernate 从 4.3.10 升级到 5.0.12。我们面临一些 Hibernate 问题,我们想使用此版本的 Spring Boot,但将 Hibernate 降级回 4.3.10。

spring Boot 1.5.8 与 Hibernate 4.3.10 兼容吗?

是的,根据官方文档here

只需确保在 pom 中覆盖(继承自 spring-boot-depencies)的休眠版本:

<properties>        
    <hibernate.version>4.3.10.Final</hibernate.version>
</properties>

我在 https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-1.4-Release-Notes

找到了这个

Hibernate 4.3 will not be supported past Spring Boot 1.4. Please raise an issue if you find a bug that prevents you from upgrading.