当前位置:   article > 正文

SpringBoot和JDK版本兼容性_jdk21 和 springboot 版本适配

jdk21 和 springboot 版本适配

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

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

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

SpringBoot VersionsJDK Versions来源
0.0 -1.16+(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.2 - 1.56 - 7https://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.08 - 9https://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.18 - 12https://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.38 - 15https://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.48 - 16https://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.58 - 18https://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.68 - 19https://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.78 - 21https://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.217 - 21https://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.
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/天景科技苑/article/detail/866947
推荐阅读
相关标签
  

闽ICP备14008679号