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

文章目录

  • 前言
  • 一、SpringCloud 与SpringBoot 版本对应关系:
    • 1. 1 进入 SpringCloud 官网
    • 1. 2 关系对应:
    • 1. 3 SpringCloud 的版本使用:
  • 二、SpringBoot与JDK对应关系:
    • 2.1.选择spring boot 的版本:
    • 2.2 进入到该springboot版本的文档中:
  • 总结


前言

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


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

1. 1 进入 SpringCloud 官网

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

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

这里列出了 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 的版本对应关系;
工具篇--SpringBoot与SpringCloud 的版本对应关系&SpringBoot与JDK对应关系(官网文档解释)_第2张图片

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与SpringCloud 的版本对应关系&SpringBoot与JDK对应关系(官网文档解释)_第3张图片

展示了改大版本下的小版本:
工具篇--SpringBoot与SpringCloud 的版本对应关系&SpringBoot与JDK对应关系(官网文档解释)_第4张图片
在右侧页面我们可以看到每个大版本下的小版本列表;点击小版本就可以直接跳到小版本:
工具篇--SpringBoot与SpringCloud 的版本对应关系&SpringBoot与JDK对应关系(官网文档解释)_第5张图片

二、SpringBoot与JDK对应关系:

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

2.1.选择spring boot 的版本:

地址:https://docs.spring.io/spring-boot/docs/
工具篇--SpringBoot与SpringCloud 的版本对应关系&SpringBoot与JDK对应关系(官网文档解释)_第6张图片

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

选择某个版本 然后点击reference/ 目录:
工具篇--SpringBoot与SpringCloud 的版本对应关系&SpringBoot与JDK对应关系(官网文档解释)_第7张图片
然后点击html/ 目录:
工具篇--SpringBoot与SpringCloud 的版本对应关系&SpringBoot与JDK对应关系(官网文档解释)_第8张图片
选择 Getting Started
工具篇--SpringBoot与SpringCloud 的版本对应关系&SpringBoot与JDK对应关系(官网文档解释)_第9张图片

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

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


总结

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

你可能感兴趣的:(Spring框架篇,#,spring-cloud,#,spring-boot,spring,boot,java,spring,cloud)