jdk5升级至jdk8框架版本选型
spring-framework-4.3.18.RELEASE 4.3.x+;JDK8
Spring JDK Version Range
- Spring Framework 5.1.x: JDK 8-12
- Spring Framework 5.0.x: JDK 8-10
- Spring Framework 4.3.x: JDK 6-8
We fully test and support Spring on Long-Term Support (LTS) releases of the JDK, i.e. currently JDK 8 and 11 (both with a lifetime until 2023). Additionally, there is support for intermediate releases such as JDK 9/10 or the upcoming JDK 12 on a best-effort basis, meaning that we accept bug reports and will try to address them as far as technically possible but won't provide any service level guarantees.
Please upgrade to Spring Framework 5.1 (and the corresponding Spring Boot 2.1) for JDK 11 support, as the common Long-Term Support migration path from JDK 8. No earlier Spring versions are officially supported on JDK 11, in particular not with JDK 11 bytecode level. Note that third-party components might not fully support JDK 11 yet, so you are likely to be limited in your full-stack options.
hibernate-5.0.12.Final
Hibernate Compatibility matrix
Hibernate ORM | 6.0 | 5.4 | 5.3 | 5.2 | 5.1 | 5.0 |
---|---|---|---|---|---|---|
Java | 8 or 11 | 8 or 11 | 8 | 8 | 6/7/8 through 5.1.3; 7/8 through 5.1.16; 8 for 5.1.17 | 6, 7 or 8 |
JPA | 2.2 | 2.2 | 2.2 | 2.1 | 2.1 | 2.1 |
Supported JPA Versions
-
JPA 1.0: ORM 3.2+
-
JPA 2.0: ORM 3.5+
-
JPA 2.1: ORM 4.3+
-
JPA 2.2: ORM 5.3+
Note that newer ORM releases are backwards compatible with older JPA versions (ex: ORM 4.3 with JPA 1.0). However, newer ORM releases may not be compatible with older JPA containers.
JDK Version Range
- Spring Framework 5.1.x: JDK 8-12
- Spring Framework 5.0.x: JDK 8-10
- Spring Framework 4.3.x: JDK 6-8
We fully test and support Spring on Long-Term Support (LTS) releases of the JDK, i.e. currently JDK 8 and 11 (both with a lifetime until 2023). Additionally, there is support for intermediate releases such as JDK 9/10 or the upcoming JDK 12 on a best-effort basis, meaning that we accept bug reports and will try to address them as far as technically possible but won't provide any service level guarantees.
Please upgrade to Spring Framework 5.1 (and the corresponding Spring Boot 2.1) for JDK 11 support, as the common Long-Term Support migration path from JDK 8. No earlier Spring versions are officially supported on JDK 11, in particular not with JDK 11 bytecode level. Note that third-party components might not fully support JDK 11 yet, so you are likely to be limited in your full-stack options.