SpringBoot和JDK版本兼容问题,就是SpringBoot的每个版本支持哪些JDK版本。
在spring官网、spring-boot项目的github地址都没有找到一个统一的总结,类似表格这样,所以到spring-boot的各个版本的文档中找出来。如果有官方的总结我没找到的,可以跟我说下。文章来源:https://www.toymoban.com/news/detail-790851.html
下面的表格列出了SpringBoot版本、JDK版本的兼容性,以及兼容性的来源,都在spring-boot的各个版本的文档中,有链接、描述java版本的原文。文章来源地址https://www.toymoban.com/news/detail-790851.html
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. |
到了这里,关于SpringBoot和JDK版本兼容性的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!