SpringBoot和JDK版本兼容性

SpringBoot和JDK版本兼容问题,就是SpringBoot的每个版本支持哪些JDK版本。

在spring官网、spring-boot项目的github地址都没有找到一个统一的总结,类似表格这样,所以到spring-boot的各个版本的文档中找出来。如果有官方的总结我没找到的,可以跟我说下。

下面的表格列出了SpringBoot版本、JDK版本的兼容性,以及兼容性的来源,都在spring-boot的各个版本的文档中,有链接、描述java版本的原文。

SpringBoot Versions JDK Versions 来源
0.0 -1.1 6+(6 or higher) https://docs.spring.io/spring-boot/docs/0.0.x/reference/html/getting-started-installing-spring-boot.html
Spring Boot can be used with “classic” Java development tools or installed as a command line tool. Regardless, you will need Java SDK v1.6 or higher.
https://docs.spring.io/spring-boot/docs/1.0.x/reference/html/getting-started-installing-spring-boot.html
Spring Boot can be used with “classic” Java development tools or installed as a command line tool. Regardless, you will need Java SDK v1.6 or higher.
https://docs.spring.io/spring-boot/docs/1.1.x/reference/html/getting-started-installing-spring-boot.html
Spring Boot can be used with “classic” Java development tools or installed as a command line tool. Regardless, you will need Java SDK v1.6 or higher.
1.4 - 1.5 6 - 7 https://docs.spring.io/spring-boot/docs/1.2.x/reference/html/getting-started-system-requirements.html
By default, Spring Boot 1.2.8.RELEASE requires Java 7 and Spring Framework 4.1.5 or above. You can use Spring Boot with Java 6 with some additional configuration.
https://docs.spring.io/spring-boot/docs/1.3.x/reference/html/getting-started-system-requirements.html
By default, Spring Boot 1.3.8.RELEASE requires Java 7 and Spring Framework 4.2.8.RELEASE or above. You can use Spring Boot with Java 6 with some additional configuration.
https://docs.spring.io/spring-boot/docs/1.4.x/reference/html/getting-started-system-requirements.html
By default, Spring Boot 1.4.7.RELEASE requires Java 7 and Spring Framework 4.3.9.RELEASE or above. You can use Spring Boot with Java 6 with some additional configuration.
https://docs.spring.io/spring-boot/docs/1.5.x/reference/html/getting-started-system-requirements.html
By default, Spring Boot 1.5.22.RELEASE requires Java 7 and Spring Framework 4.3.25.RELEASE or above. You can use Spring Boot with Java 6 with some additional configuration.
2.0 8 - 9 https://docs.spring.io/spring-boot/docs/2.0.x/reference/html/getting-started-system-requirements.html
Spring Boot 2.0.9.RELEASE requires Java 8 or 9 and Spring Framework 5.0.13.RELEASE or above.
2.1 8 - 12 https://docs.spring.io/spring-boot/docs/2.1.x/reference/html/getting-started-system-requirements.html
Spring Boot 2.1.18.RELEASE requires Java 8 and is compatible up to Java 12 (included).
2.2 - 2.3 8 - 15 https://docs.spring.io/spring-boot/docs/2.2.x/reference/html/getting-started.html#getting-started-system-requirements
Spring Boot 2.2.13.RELEASE requires Java 8 and is compatible up to Java 15 (included).
https://docs.spring.io/spring-boot/docs/2.3.x/reference/html/getting-started.html#getting-started-system-requirements
Spring Boot 2.3.12.RELEASE requires Java 8 and is compatible up to Java 15 (included).
2.4 8 - 16 https://docs.spring.io/spring-boot/docs/2.4.x/reference/html/getting-started.html#getting-started-system-requirements
Spring Boot 2.4.13 requires Java 8 and is compatible up to Java 16 (included).
2.5 8 - 18 https://docs.spring.io/spring-boot/docs/2.5.x/reference/html/getting-started.html#getting-started.system-requirements
Spring Boot 2.5.15 requires Java 8 and is compatible up to and including Java 18.
2.6 8 - 19 https://docs.spring.io/spring-boot/docs/2.6.x/reference/html/getting-started.html#getting-started.system-requirements
Spring Boot 2.6.15 requires Java 8 and is compatible up to and including Java 19.
2.7 8 - 21 https://docs.spring.io/spring-boot/docs/2.7.x/reference/html/getting-started.html#getting-started.system-requirements
Spring Boot 2.7.18 requires Java 8 and is compatible up to and including Java 21.
3.0 - 3.2 17 - 21 https://docs.spring.io/spring-boot/docs/3.0.x/reference/html/getting-started.html#getting-started
Spring Boot 3.0.13 requires Java 17 and is compatible up to and including Java 21.
https://docs.spring.io/spring-boot/docs/3.1.x/reference/html/getting-started.html#getting-started
Spring Boot 3.1.6 requires Java 17 and is compatible up to and including Java 21.
https://docs.spring.io/spring-boot/docs/3.2.x/reference/html/getting-started.html#getting-started
Spring Boot 3.2.0 requires Java 17 and is compatible up to and including Java 21.

你可能感兴趣的:(Spring,java,spring,boot)