springcloud與springboot版本關係


原文鏈接:https://blog.csdn.net/russle/article/details/80865288

很多人在使用springboot和springcloud,但是對於這兩者之間的版本關係不是很清楚,特別是在面臨升級的時候不知道該如何操作。本文簡要摘錄的官方文檔的部分內容作爲依據,供廣大同行參考。

問題的提出,我現在使用的是1.5.1版本的springboot 和Edgware.RELEASE版本的springcloud,我想升級到springboot到2.0.0, springcloud需要升級嗎? 或者我想單獨升級springcloud到Finchley.RELEASE,可以不用升級springboot嗎?

如果一次升級多個基礎框架,可能面臨的風險較大,需要我們審慎評估和測試,所以一般我們都是小步快速升級,先升級一個,上線沒問題後,再升級另外一個,最終達到升級整改項目框架。可是有時我們必須理清楚這些要升級的框架之間的依賴關係,否則就無法有的放矢,因爲升級了A,可能系統就無法正常運行,因爲A和他依賴的某個框架是同步綁定版本的,升級A就必須同步升級他的依賴。而SpringCloud和Springboot就存在這樣的關係。

Spring Cloud的版本列表 


release發佈記錄在這裏https://projects.spring.io/spring-cloud/。 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.

從這段文字可以知道, 
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版本匹配關係 


原文鏈接:https://blog.csdn.net/russle/article/details/80865288

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章