網站首頁 編程語言 正文
1、SpringBoot 和 Spring Cloud版本依賴關系
以下內容均體現在Spring Cloud官網(https://spring.io/projects/spring-cloud)。
0)Spring Cloud版本名變更
從2020.0.X版本開始,Spring Cloud版本的命名方式修改為時間線的方式。
而SpringCloud之前的版本名稱是倫敦地鐵站的站名
命名,且首字母順序與版本時間順序一致,如:
Angel
Brixton
Camden
Dalston
Edgware
Finchley
Greenwich
Hoxton
還是倫敦地鐵站的站名
命名版本時,當SpringCloud的發布內容積累到臨界點或者一個重大Bug被解決后,會發布一個"Service Releases"版本,簡稱"SR"版本(參考官網:https://github.com/spring-cloud/spring-cloud-release/wiki/Spring-Cloud-Hoxton-Release-Notes)。其中也包括相關組件的版本,比如:Spring Cloud Netflix 2.2.9 RELEASE。
而從2020.0.X版本開始,則是數字遞增的方式:
SpringCloud與SpringBoot的版本對應關系,可以通過以下三種方式來確定:
1)SpringCloud發布版本與SpringBoot版本兼容性的表格
表中描述的是一個版本范圍;比如與SpringCloud Hoxton版本適配的SpringBoot版本應該是2.2.x版本 或 2.3.x(SR5開始以上)的版本。
2)訪問https://start.spring.io/actuator/info
JSON格式化后的Spring Cloud版本內容如下:
3)Spring Cloud參考文章中會推薦使用Spring Boot版本
這種方式最精準。
2、SpringCloud 和 SpringCloudAlibaba版本對應關系
spring Cloud Alibaba官方版本聲明:https://github.com/alibaba/spring-cloud-alibaba/wiki。
2)Spring Cloud alibaba 組件版本關系
3、依賴管理
Spring Cloud Alibaba BOM 中包含了它所使用的所有依賴的版本。
我們只需要在<dependencyManagement>
標簽中 添加如下內容:
<project>
.....
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>2.3.7.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!--整合spring cloud-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Hoxton.SR8</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!--整合spring cloud alibaba-->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
<version>2.2.5.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
</project>
此處是博主研究Spring Cloud Alibaba的版本(親測很穩):
原文鏈接:https://blog.csdn.net/Saintmm/article/details/125039660
相關推薦
- 2022-05-20 C++實現簡單學生信息管理系統_C 語言
- 2024-04-05 docker部署mongodb
- 2022-08-11 淺析k8s中各組件和kube?apiserver通信時的認證和鑒權問題_云其它
- 2022-12-22 利用C++求解八數碼問題實例代碼_C 語言
- 2023-03-29 Python本地搭建靜態Web服務器的實現_python
- 2022-07-01 react-router-dom?V6的配置使用實踐_React
- 2022-04-19 python?tkinter實現彈窗的輸入輸出_python
- 2023-01-15 SqlServer?多種分頁方式?詳解(含簡單速度測試)_MsSql
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支