国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

Spring Boot、Spring Cloud與Spring Cloud Alibaba版本對應(yīng)關(guān)系

這篇具有很好參考價值的文章主要介紹了Spring Boot、Spring Cloud與Spring Cloud Alibaba版本對應(yīng)關(guān)系。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

一、前言

在搭建SpringCloud項目環(huán)境架構(gòu)的時候,經(jīng)常需要選擇SpringBoot和SpringCloud進行兼容的版本號。因此,對于選擇SpringBoot版本與SpringCloud版本的對應(yīng)關(guān)系很重要,如果版本關(guān)系不對應(yīng),常見的會遇見項目啟動不起來,怪異的則會是你的項目出現(xiàn)一些詭異的問題,查資料也不好查。下面就收集一下SpringBoot與SpringCloud版本之間的對應(yīng)關(guān)系,在搭建項目框架或者學(xué)習(xí)時按照對應(yīng)的版本區(qū)間進行選擇即可,避免走一些不必要的彎路。

1. 歷史版本圖

Release train Spring Boot compatibility
springcloudalibaba 版本對應(yīng),Springcloud Alibaba微服務(wù)分布式架構(gòu),spring boot,spring cloud,java

注意: 官方通告SpringBoot1.5.x及以下版本官方不再提供維護了,建議開發(fā)者選擇使用SpringBoot2.0.x以上的版本,相對應(yīng)的SpringCloud版本也最好不要使用。

二、查看版本關(guān)系

訪問Spring官方地址,可獲取SpringBoot和SpringCloud版本對應(yīng)信息。

地址如下:

https://start.spring.io/actuator/info

JSON格式如下:

{
"git": {
"branch": "aa1ad68ea9a0eac4180037118854753f3e200e85",
"commit": {
"id": "aa1ad68",
"time": "2023-03-10T15:26:12Z"
}
},
"build": {
"version": "0.0.1-SNAPSHOT",
"artifact": "start-site",
"versions": {
"spring-boot": "3.0.2",
"initializr": "0.20.0-SNAPSHOT"
},
"name": "start.spring.io website",
"time": "2023-03-10T15:27:19.222Z",
"group": "io.spring.start"
},
"bom-ranges": {
"codecentric-spring-boot-admin": {
"2.4.3": "Spring Boot >=2.3.0.M1 and <2.5.0-M1",
"2.5.6": "Spring Boot >=2.5.0.M1 and <2.6.0-M1",
"2.6.8": "Spring Boot >=2.6.0.M1 and <2.7.0-M1",
"2.7.4": "Spring Boot >=2.7.0.M1 and <3.0.0-M1",
"3.0.0-M4": "Spring Boot >=3.0.0-M1 and <3.1.0-M1"
},
"solace-spring-boot": {
"1.1.0": "Spring Boot >=2.3.0.M1 and <2.6.0-M1",
"1.2.2": "Spring Boot >=2.6.0.M1 and <3.0.0-M1"
},
"solace-spring-cloud": {
"1.1.1": "Spring Boot >=2.3.0.M1 and <2.4.0-M1",
"2.1.0": "Spring Boot >=2.4.0.M1 and <2.6.0-M1",
"2.3.2": "Spring Boot >=2.6.0.M1 and <3.0.0-M1"
},
"spring-cloud": {
"Hoxton.SR12": "Spring Boot >=2.2.0.RELEASE and <2.4.0.M1",
"2020.0.6": "Spring Boot >=2.4.0.M1 and <2.6.0-M1",
"2021.0.0-M1": "Spring Boot >=2.6.0-M1 and <2.6.0-M3",
"2021.0.0-M3": "Spring Boot >=2.6.0-M3 and <2.6.0-RC1",
"2021.0.0-RC1": "Spring Boot >=2.6.0-RC1 and <2.6.1",
"2021.0.6": "Spring Boot >=2.6.1 and <3.0.0-M1",
"2022.0.0-M1": "Spring Boot >=3.0.0-M1 and <3.0.0-M2",
"2022.0.0-M2": "Spring Boot >=3.0.0-M2 and <3.0.0-M3",
"2022.0.0-M3": "Spring Boot >=3.0.0-M3 and <3.0.0-M4",
"2022.0.0-M4": "Spring Boot >=3.0.0-M4 and <3.0.0-M5",
"2022.0.0-M5": "Spring Boot >=3.0.0-M5 and <3.0.0-RC1",
"2022.0.0-RC1": "Spring Boot >=3.0.0-RC1 and <3.0.0-RC2",
"2022.0.0-RC2": "Spring Boot >=3.0.0-RC2 and <3.0.0",
"2022.0.1": "Spring Boot >=3.0.0 and <3.1.0-M1"
},
"spring-cloud-azure": {
"4.6.0": "Spring Boot >=2.5.0.M1 and <3.0.0-M1",
"5.0.0": "Spring Boot >=3.0.0-M1 and <3.1.0-M1"
},
"spring-cloud-gcp": {
"2.0.11": "Spring Boot >=2.4.0-M1 and <2.6.0-M1",
"3.4.6": "Spring Boot >=2.6.0-M1 and <3.0.0-M1",
"4.1.2": "Spring Boot >=3.0.0-M1 and <3.1.0-M1"
},
"spring-cloud-services": {
"2.3.0.RELEASE": "Spring Boot >=2.3.0.RELEASE and <2.4.0-M1",
"2.4.1": "Spring Boot >=2.4.0-M1 and <2.5.0-M1",
"3.3.0": "Spring Boot >=2.5.0-M1 and <2.6.0-M1",
"3.4.0": "Spring Boot >=2.6.0-M1 and <2.7.0-M1",
"3.5.0": "Spring Boot >=2.7.0-M1 and <3.0.0-M1",
"4.0.0": "Spring Boot >=3.0.0 and <3.1.0-M1"
},
"spring-shell": {
"2.1.6": "Spring Boot >=2.7.0 and <3.0.0-M1",
"3.0.0": "Spring Boot >=3.0.0 and <3.1.0-M1"
},
"vaadin": {
"14.9.6": "Spring Boot >=2.1.0.RELEASE and <2.6.0-M1",
"23.2.15": "Spring Boot >=2.6.0-M1 and <2.7.0-M1",
"23.3.5": "Spring Boot >=2.7.0-M1 and <3.0.0-M1",
"24.0.0": "Spring Boot >=3.0.0-M1 and <3.1.0-M1"
},
"hilla": {
"1.3.5": "Spring Boot >=2.7.0-M1 and <3.0.0-M1",
"2.0.0": "Spring Boot >=3.0.0-M1 and <3.1.0-M1"
},
"wavefront": {
"2.0.2": "Spring Boot >=2.1.0.RELEASE and <2.4.0-M1",
"2.1.1": "Spring Boot >=2.4.0-M1 and <2.5.0-M1",
"2.2.2": "Spring Boot >=2.5.0-M1 and <2.7.0-M1",
"2.3.4": "Spring Boot >=2.7.0-M1 and <3.0.0-M1",
"3.0.1": "Spring Boot >=3.0.0-M1 and <3.1.0-M1"
}
},
"dependency-ranges": {
"okta": {
"1.4.0": "Spring Boot >=2.2.0.RELEASE and <2.4.0-M1",
"1.5.1": "Spring Boot >=2.4.0-M1 and <2.4.1",
"2.0.1": "Spring Boot >=2.4.1 and <2.5.0-M1",
"2.1.6": "Spring Boot >=2.5.0-M1 and <3.0.0-M1",
"3.0.3": "Spring Boot >=3.0.0-M1 and <3.1.0-M1",
"managed": "Spring Boot >=3.1.0-M1"
},
"mybatis": {
"2.1.4": "Spring Boot >=2.1.0.RELEASE and <2.5.0-M1",
"2.2.2": "Spring Boot >=2.5.0-M1 and <2.7.0-M1",
"2.3.0": "Spring Boot >=2.7.0-M1 and <3.0.0-M1",
"3.0.0": "Spring Boot >=3.0.0-M1"
},
"camel": {
"3.5.0": "Spring Boot >=2.3.0.M1 and <2.4.0-M1",
"3.10.0": "Spring Boot >=2.4.0.M1 and <2.5.0-M1",
"3.13.0": "Spring Boot >=2.5.0.M1 and <2.6.0-M1",
"3.17.0": "Spring Boot >=2.6.0.M1 and <2.7.0-M1",
"3.20.2": "Spring Boot >=2.7.0.M1 and <3.0.0-M1",
"4.0.0-M2": "Spring Boot >=3.0.0-M1 and <3.1.0-M1"
},
"picocli": {
"4.7.0": "Spring Boot >=2.5.0.RELEASE and <3.1.0-M1"
},
"open-service-broker": {
"3.2.0": "Spring Boot >=2.3.0.M1 and <2.4.0-M1",
"3.3.1": "Spring Boot >=2.4.0-M1 and <2.5.0-M1",
"3.4.1": "Spring Boot >=2.5.0-M1 and <2.6.0-M1",
"3.5.0": "Spring Boot >=2.6.0-M1 and <2.7.0-M1"
}
}
}

三、如何選擇SpringBoot與SpringCloud版本號

項目搭建初期,如何對SpringBoot和SpringCloud的一個相互兼容性版本號進行選擇,這是很重要的一步,例如SpringCloud的Hoxton.SR3這個版本,他對應(yīng)的"Spring Boot >=2.2.0.M4 and <2.3.0.BUILD-SNAPSHOT"版本,意思就是如果選擇使用SpringCloud 的Hoxton.SR3這個版本,那么SpringBoot的版本需要大于等于2.2.0小于2.3.0即可滿足兼容性。

1. 引入SpringCloud版本管理

官方提供了管理Spring Cloud 每個版本兼容的pom,引入下面依賴管理信息即可:

 <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-dependencies</artifactId>
                <version>Hoxton.SR3</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
 </dependencyManagement>
2. 使用Spring Boot

Spring Boot可以也像父工程那樣管理自己內(nèi)部的兼容版本號,如下:

<parent>
   <groupId>org.springframework.boot</groupId>
   <artifactId>spring-boot-starter-parent</artifactId>
   <version>2.2.5.RELEASE</version>
   <relativePath/> <!-- lookup parent from repository -->
</parent>

四、SpringBoot、SpringCloud、SpringCloudAlibaba版本對應(yīng)關(guān)系

由于Spring Cloud基于Spring Boot構(gòu)建,而Spring Cloud Alibaba又基于Spring Cloud Common的規(guī)范實現(xiàn),所以當(dāng)我們使用``Spring Cloud Alibaba`來構(gòu)建微服務(wù)應(yīng)用的時候,需要知道這三者之間的版本關(guān)系。

下表整理了目前Spring Cloud Alibaba的版本與Spring Boot、Spring Cloud版本的兼容關(guān)系:

1. 畢業(yè)版本依賴關(guān)系(推薦使用)

springcloudalibaba 版本對應(yīng),Springcloud Alibaba微服務(wù)分布式架構(gòu),spring boot,spring cloud,java

五. Spring Cloud Alibaba與組件版本關(guān)系

Spring Cloud Alibaba是基于Spring Cloud Common的規(guī)范實現(xiàn),而Spring Cloud Alibaba的各個微服務(wù)組件依賴于Spring Cloud Alibaba自身,因此我們需要知道Spring Cloud Alibaba與其自身微服務(wù)組件之間的版本關(guān)系。

下表整理了目前Spring Cloud Alibaba的版本與Sentinel、Nacos 、RocketMQ 、Dubbo、Seata版本的兼容關(guān)系:

1. 組件版本關(guān)系springcloudalibaba 版本對應(yīng),Springcloud Alibaba微服務(wù)分布式架構(gòu),spring boot,spring cloud,java

六、依賴管理

Spring Cloud Alibaba BOM 包含了它所使用的所有依賴的版本。

1. RELEASE 版本

Spring Cloud Hoxton

如果需要使用 Spring Cloud Hoxton 版本,請在 dependencyManagement中添加如下配置

<dependency>
    <groupId>com.alibaba.cloud</groupId>
    <artifactId>spring-cloud-alibaba-dependencies</artifactId>
    <version>2.2.3.RELEASE</version>
    <type>pom</type>
    <scope>import</scope>
</dependency>

然后在dependencies 中添加自己所需使用的依賴即可使用。

Spring Cloud Greenwich

如果需要使用 Spring Cloud Greenwich版本,請在 dependencyManagement中添加如下配置

<dependency>
    <groupId>com.alibaba.cloud</groupId>
    <artifactId>spring-cloud-alibaba-dependencies</artifactId>
    <version>2.1.3.RELEASE</version>
    <type>pom</type>
    <scope>import</scope>
</dependency>

然后在 dependencies中添加自己所需使用的依賴即可使用。

Spring Cloud Finchley

如果需要使用 Spring Cloud Finchley版本,請在 dependencyManagement中添加如下配置

<dependency>
    <groupId>com.alibaba.cloud</groupId>
    <artifactId>spring-cloud-alibaba-dependencies</artifactId>
    <version>2.0.3.RELEASE</version>
    <type>pom</type>
    <scope>import</scope>
</dependency>

然后在dependencies中添加自己所需使用的依賴即可使用。

Spring Cloud Edgware

如果需要使用 Spring Cloud Edgware 版本,請在 dependencyManagement中添加如下配置

<dependency>
    <groupId>com.alibaba.cloud</groupId>
    <artifactId>spring-cloud-alibaba-dependencies</artifactId>
    <version>1.5.1.RELEASE</version>
    <type>pom</type>
    <scope>import</scope>
</dependency>

然后在 dependencies中添加自己所需使用的依賴即可使用。

2. 版本管理規(guī)范

項目的版本號格式為 x.x.x 的形式,其中 x 的數(shù)值類型為數(shù)字,從 0 開始取值,且不限于 0~9 這個范圍。項目處于孵化器階段時,第一位版本號固定使用 0,即版本號為 0.x.x 的格式。

由于 `Spring Boot 1 和 Spring Boot 2 在 Actuator 模塊的接口和注解有很大的變更,且 spring-cloud-commons 從 1.x.x 版本升級到 2.0.0 版本也有較大的變更,因此我們采取跟 SpringBoot 版本號一致的版本:

1.5.x 版本適用于 Spring Boot 1.5.x
2.0.x 版本適用于 Spring Boot 2.0.x
2.1.x 版本適用于 Spring Boot 2.1.x
2.2.x 版本適用于 Spring Boot 2.2.x

七、參考文檔

1.Spring-Cloud-Alibaba版本說明:
https://github.com/alibaba/spring-cloud-alibaba/wiki/版本說明

3.SpringCloudAlibaba中文社區(qū)地址:
https://github.com/alibaba/spring-cloud-alibaba/blob/master/README-zh.md

2.SpringCloud官方文檔:
https://cloud.spring.io/spring-cloud-static/spring-cloud-gateway/2.2.1.RELEASE/reference/html/文章來源地址http://www.zghlxwxcb.cn/news/detail-725661.html

到了這里,關(guān)于Spring Boot、Spring Cloud與Spring Cloud Alibaba版本對應(yīng)關(guān)系的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費用

相關(guān)文章

  • springcloudalibaba和nacos版本對應(yīng)關(guān)系

    springcloudalibaba和nacos版本對應(yīng)關(guān)系

    因為公司項目需要升級springcloud的版本,升級后服務(wù)啟動時連接不上nacos(如下圖) 歷程一 一開始直接百度“Client not connected, current status:STARTING”這個錯誤,說可能是因為版本問題,然后到官網(wǎng)找對個版本對應(yīng)的關(guān)系圖 我項目所用的版本是2021.0.5.0的,那么對應(yīng)的nacos版本應(yīng)該

    2024年01月25日
    瀏覽(21)
  • Spring Boot各版本與Java版本的對應(yīng)兼容關(guān)系,與構(gòu)建工具(Maven、Gradle)版本的對應(yīng)兼容關(guān)系,對servlet 容器的支持

    Spring Boot各版本與Java版本的對應(yīng)兼容關(guān)系,與構(gòu)建工具(Maven、Gradle)版本的對應(yīng)兼容關(guān)系,對servlet 容器的支持

    by:垃圾程序員 當(dāng)前文章具有時效性,在當(dāng)前springboot的版本下做的整合。之后大家視情況可以直接到Spring的官網(wǎng)查看 Spring | Home Level up your Java code and explore what Spring can do for you. https://spring.io/ 下面是Spring Boot各個版本的支持時間 下面是Spring Boot 推薦使用的各個版面,并標(biāo)注出

    2024年02月10日
    瀏覽(153)
  • Spring Cloud Alibaba 最新版本(基于Spring Boot 3.1.0)整合完整使用及與各中間件集成

    Spring Cloud Alibaba 最新版本(基于Spring Boot 3.1.0)整合完整使用及與各中間件集成

    目錄 前言 源碼地址 官方中文文檔 使用版本 spring Spring Boot 3.1.0 中間件 使用到的組件與功能 環(huán)境安裝 虛擬機 nexus nacos 集成過程 工程搭建 父工程搭建 子工程 服務(wù)集成 nacos集成 配置文件 服務(wù)注冊與發(fā)現(xiàn)-discovery 服務(wù)注冊 啟動 服務(wù)發(fā)現(xiàn) 測試 配置管理-config 新增配置 ?測試

    2024年02月07日
    瀏覽(29)
  • Spring Cloud Alibaba 最新版本(基于Spring Boot 3.1.0)整合完整使用及與各中間件集成
Sleuth+Zipkin集成分布式鏈路追蹤

    Spring Cloud Alibaba 最新版本(基于Spring Boot 3.1.0)整合完整使用及與各中間件集成 Sleuth+Zipkin集成分布式鏈路追蹤

    目錄 前言 源碼地址 官方中文文檔 使用版本 spring Spring Boot 3.1.0 中間件 使用到的組件與功能 環(huán)境安裝 虛擬機 nexus nacos 集成過程 工程搭建 父工程搭建 子工程 服務(wù)集成 nacos集成 配置文件 服務(wù)注冊與發(fā)現(xiàn)-discovery 服務(wù)注冊 啟動 服務(wù)發(fā)現(xiàn) 測試 配置管理-config 新增配置 ?測試

    2024年02月12日
    瀏覽(59)
  • Spring Boot 單體應(yīng)用一鍵升級成 Spring Cloud Alibaba

    Spring Boot 單體應(yīng)用一鍵升級成 Spring Cloud Alibaba

    作者:十眠 隨著 Apache Dubbo、Nacos 以及 Spring Cloud 等服務(wù)框架的流行,越來越多的企業(yè)開始采用微服務(wù)架構(gòu)來構(gòu)建其應(yīng)用程序。微服務(wù)架構(gòu)使企業(yè)能夠?qū)⑵鋺?yīng)用程序拆分成多個小型服務(wù),這些服務(wù)可以獨立部署和擴展。這種架構(gòu)模式也使企業(yè)更容易實現(xiàn)敏捷開發(fā)和持續(xù)交付,從

    2024年02月05日
    瀏覽(21)
  • 拾壹博客Spring Boot轉(zhuǎn)換成Spring Cloud Alibaba架構(gòu)

    拾壹博客Spring Boot轉(zhuǎn)換成Spring Cloud Alibaba架構(gòu)

    改的地方實在太多了,所以過程記錄不下去了,但是業(yè)務(wù)模塊跟Boot是一毛一樣的沒有變化,直接發(fā)項目代碼,包括了nacos中的配置文件在對應(yīng)的模塊,運行大概是沒有問題。 成果: 鏈接已死,真的大無語。 等哪天把家里的k8s的minio整一下。先傳到CSDN咯。 PS:其實過年前就已

    2024年02月06日
    瀏覽(92)
  • 微服務(wù)(SpringBoot、SpringCloud、SpringCloud Alibaba、Nacos、JDK)之間的版本對應(yīng)依賴關(guān)系(附Nacos高速下載地址)

    微服務(wù)(SpringBoot、SpringCloud、SpringCloud Alibaba、Nacos、JDK)之間的版本對應(yīng)依賴關(guān)系(附Nacos高速下載地址)

    前言 本文主要整理與介紹在搭建微服務(wù)項目時,核心組件之間的版本對應(yīng)關(guān)系,避免版本依賴沖突帶來的一系列問題,同時也方便后續(xù)升級與查看。 這里先放上我目前搭建的較新的微服務(wù)腳手架版本,如下(springboot3.0開始不支持jdk8) Spring Boot Spring Cloud Spring Cloud Alibaba Noc

    2024年02月04日
    瀏覽(30)
  • 【Spring Boot 3】整合nacos + Dubbo3 的Spring cloud Alibaba項目

    【Spring Boot 3】整合nacos + Dubbo3 的Spring cloud Alibaba項目

    在springboot3不再兼容jdk8的時候,隨之而來的便是各種框架不兼容引發(fā)的bug,雖然各位框架的開發(fā)大佬在加班加點的更新適配,但能夠創(chuàng)建一個適用并且不報錯的項目依舊是一件耗時耗力的事情。 我們都知道在String Cloud項目中默認使用Feign組件進行服務(wù)間的通信,REST API的調(diào)用

    2024年03月22日
    瀏覽(24)
  • SpringBoot、SpringCloud、Spring Cloud Alibaba版本對照表(詳細)

    SpringBoot、SpringCloud、Spring Cloud Alibaba版本對照表(詳細)

    由于 Spring Boot 3.0,Spring Boot 2.7~2.4 和 2.4 以下版本之間變化較大,目前企業(yè)級客戶老項目相關(guān) Spring Boot 版本仍停留在 Spring Boot 2.4 以下,為了同時滿足存量用戶和新用戶不同需求,社區(qū)以 Spring Boot 3.0 和 2.4 分別為分界線,同時維護 2022.x、2021.x、2.2.x 三個分支迭代。如果不想跨

    2024年02月12日
    瀏覽(96)
  • Spring boot與Spring cloud 之間的關(guān)系

    Spring boot與Spring cloud 之間的關(guān)系 Spring boot 是 Spring 的一套快速配置腳手架,可以基于spring boot 快速開發(fā)單個微服務(wù),Spring Boot,看名字就知道是Spring的引導(dǎo),就是用于啟動Spring的,使得Spring的學(xué)習(xí)和使用變得快速無痛。不僅適合替換原有的工程結(jié)構(gòu),更適合微服務(wù)開發(fā)。 Spr

    2024年02月09日
    瀏覽(26)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包