不少人在使用springboot和springcloud,可是對於這二者之間的版本關係不是很清楚,特別是在面臨升級的時候不知道該如何操做。本文簡要摘錄的官方文檔的部份內容做爲依據,供廣大同行參考。spring
問題的提出,我如今使用的是1.5.1版本的springboot 和Edgware.RELEASE版本的springcloud,我想升級到springboot到2.0.0, springcloud須要升級嗎? 或者我想單獨升級springcloud到Finchley.RELEASE,能夠不用升級springboot嗎?springboot
若是一次升級多個基礎框架,可能面臨的風險較大,須要咱們審慎評估和測試,因此通常咱們都是小步快速升級,先升級一個,上線沒問題後,再升級另一個,最終達到升級整改項目框架。但是有時咱們必須理清楚這些要升級的框架之間的依賴關係,不然就沒法有的放矢,由於升級了A,可能系統就沒法正常運行,由於A和他依賴的某個框架是同步綁定版本的,升級A就必須同步升級他的依賴。而SpringCloud和Springboot就存在這樣的關係。框架
Spring Cloud的版本列表測試
目前已有版本Greenwichui
release發佈記錄在這裏spa
https://projects.spring.io/spring-cloud/ .net
Finchley builds and works with Spring Boot 2.0.x, and is not expected to work with Spring Boot 1.5.x.
The Dalston and Edgware release trains build on Spring Boot 1.5.x, and are not expected to work with Spring Boot 2.0.x.
The Camden release train builds on Spring Boot 1.4.x, but is also tested with 1.5.x.
NOTE: The Brixton and Angel release trains were marked end-of-life (EOL) in July 2017.
The Brixton release train builds on Spring Boot 1.3.x, but is also tested with 1.4.x.blog
從這段文字能夠知道,
Finchley須要Spring Boot 2.0.x,預計不會與Spring Boot 1.5.x一塊兒工做(潛在臺詞,和1.5.x沒有和作過兼容性測試,最好不要和1.5.x一塊兒使用)。
Dalston版本和Edgware版本是在Spring Boot 1.5.x上構建的,預計不會與Spring Boot 2.0.x一塊兒工做。
Camden 版本是在 Spring Boot 1.4.x上構建的,可是也和Spring Boot 1.5.x進行過測試。因此能夠認爲是可以和Spring Boot 1.5.x一塊兒工做的。
Brixton版本和Angel版本已經再也不支持了(2017-07就結束了)。圖片
Spring Cloud與Spring Boot版本匹配關係ssl
Greenwich 支持 SpringBoot 2.1.x
--------------------- 版權聲明:本文爲CSDN博主「russle」的原創文章,遵循CC 4.0 by-sa版權協議,轉載請附上原文出處連接及本聲明。原文連接:https://blog.csdn.net/russle/article/details/80865288