工具篇--SpringBoot与SpringCloud 的版本对应关系&SpringBoot与JDK对应关系(官网文档解释)


前言

通常我们创建springboot 项目时都会用的springcloud 框架对springboot 进行整合,所以此时就非常有必要了解他们之间的版本对应关系了,最准确的信息就需要到官网进行了解。


一、SpringCloud 与SpringBoot 版本对应关系:

1. 1 进入 SpringCloud 官网

地址: https://spring.io/projects/spring-cloud/#overview

在这里插入图片描述

这里列出了 SpringCloud 的最近几个版本,在往下看也说明了 从 2020.0.x 及以前的版本不在进行维护了;

Spring Cloud Dalston, Edgware, Finchley, Greenwich and 2020.0 (aka Ilford) have all reached end of life status and are no longer supported.

在 “Table 1. Release train Spring Boot compatibility (see here for more detailed information).” 我们可以点击here查看更加具体的信息;也可以直接访问改地址:https://github.com/spring-cloud/spring-cloud-release/wiki/Supported-Versions#supported-releases

1. 2 关系对应:

表格中列举了-SpringBoot与SpringCloud,顺带也列举其他组件与SpringCloud 的版本对应关系;其中"spring-boot" 列 就是SpringBoot与SpringCloud 的版本对应关系;
在这里插入图片描述

1. 3 SpringCloud 的版本使用:

在 1. 2 关系对应 我们可以看到SpringCloud 的版本 2023.0 (Leyton) 2022.0 (Kilburn) 2021.0 (Jubilee) 这些实际上是它的大版本,它们后面还有小版本,而我们项目中使用的也是它们具体的某个小版本,在官网往下翻可以看到 其对 SpringCloud 的版本的命名:

Release Train Naming
In early 2020, the release train versioning scheme changed. We now follow Calendar Versioning or calver for short. We follow the YYYY.MINOR.MICRO scheme, where MINOR is an incrementing number that starts at zero each year. The MICRO segment corresponds to suffixes previously used: .0 is analogous to .RELEASE and .2 is analogous to .SR2. Pre-release suffixes also change from using a . to a - for the separator, for example 2020.0.0-M1 and 2020.0.0-RC2. We will also stop prefixing snapshots with BUILD- – for example, 2020.0.0-SNAPSHOT. A Release Train generation is defined by the first two parts of the version, so 2020.0 (codename Ilford) is the Release Train generation, and 2020.0.0 is the first release. In other words, the first two parts of the version are not MAJOR.MINOR.
The previous scheme was based on London Tube Station names. These will be continued to be used for code names, but these names will no longer be used in versions published to Maven repositories.

可以看到它的命名规则是 YYYY.MINOR.MICRO ;其中 YYYY 代表年份,MINOR 每年都从 0 开始;MICRO 是小版本;

在 SpringCloud 概览的页面我们选择任意一个版本进入,就可以看到改大版本下都有哪些小版本:

在这里插入图片描述

展示了改大版本下的小版本:
在这里插入图片描述
在右侧页面我们可以看到每个大版本下的小版本列表;点击小版本就可以直接跳到小版本:
在这里插入图片描述

二、SpringBoot与JDK对应关系:

Spring Cloud 通常跟随 Spring Boot 的支持和兼容性,而 Spring Boot 对 JDK 版本有特定的要求,所以在使用 Spring Boot也需要知道其对Jdk的要求:

2.1.选择spring boot 的版本:

地址:https://docs.spring.io/spring-boot/docs/
在这里插入图片描述

2.2 进入到该springboot版本的文档中:

选择某个版本 然后点击reference/ 目录:
在这里插入图片描述
然后点击html/ 目录:
在这里插入图片描述
选择 Getting Started
在这里插入图片描述

System Requirements 章节中可以看到其对应的jdk 版本:

在这里插入图片描述


总结

本文按照Spring 的官网对-SpringBoot与SpringCloud 以及SpringBoot与JDK 的版本对应关系进行整理。

  • 26
    点赞
  • 28
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值