SpringBoot和JDK版本兼容性

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.
  • 20
    点赞
  • 33
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值