很多人在使用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的版本列表

目前已有版本Greenwich

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版本匹配关系

Greenwich 支持 SpringBoot 2.1.x

---------------------
版权声明:本文为CSDN博主「russle」的原创文章,遵循CC 4.0 by-sa版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/russle/article/details/80865288

最新文章

  1. 多个网站使用不同的SSH密钥登陆(zz)
  2. Linux多线程同步方式
  3. Android成长日记-LogCat
  4. Behavior Designer中的内置消息机制
  5. css编码规范
  6. PC上安装多个操作系统
  7. IMAQdx和IMAQ
  8. datagridview里面有combox避免双击两次的写法
  9. Java Classloader原理分析
  10. APC -- Asynchronous Procedure Call 异步过程调用
  11. hdoj 1896 Stones【优先队列】
  12. oracle学习笔记(2)-基本术语
  13. JS实现单选按钮回显时页面效果出现,但选中单选框的值为空
  14. python hashlib、hmac模块
  15. [HAOI2009]逆序对数列
  16. jquery作业
  17. flutter 返回键监听
  18. python 科学计算及数据可视化
  19. presto .vs impala .vs HAWQ query engine
  20. 在浏览器中运行java applet

热门文章

  1. jTessBoxEditor训练识别库
  2. LeetCode 205:同构字符串 Isomorphic Strings
  3. Sublime和VSCode生成基础HTML代码
  4. 第2个word发布的博客
  5. Python爬取知乎单个问题下的回答
  6. PHP入门了解
  7. Java技巧——比较两个日期相差的天数
  8. 接口测试基础--Fiddler、Postman、Python实现对接口的测试
  9. VS2017 打开WebService 提示已经在解决方案中打开了具有该名称的项目
  10. jqgrid后台处理搜索