不少人在使用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