1.前言

一开始不理解为什么使用 spring boot 高版本  ,却没有对应的spring cloud版本 ,还以为最高版本的 spring cloud 会向上兼容  。 这个坑 ,没有人告诉我,我踩了好久!!!

2.版本对应总结

1) .  spring boot 1.5.9 RELEASE   兼容 Dalston.SR1  ,依赖包如下:

(1)eureka

<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-eureka-server</artifactId>
</dependency>

(2)feign

 <!--feign依赖包-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-feign</artifactId>
</dependency>

(3)config【没有改变】

    <!--配置中心依赖包-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-config-server</artifactId>
</dependency>
<!--配置中心-客户端依赖包-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-config</artifactId>
</dependency>

(4)bus【没有改变】

    <!--健康检测管理中心 ,可刷新配置文件-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency> <!--spring cloud bus,消息总线-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-bus-amqp</artifactId>
</dependency>

(5) zuul网关

<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-zuul</artifactId>
</dependency>

2) . spring boot 2.1.6.RELEASE  可兼容 Greenwich.SR1  、 Greenwich.SR2  、Greenwich.SR3  ,【我使用Greenwich.SR2】

依赖包如下:

(1) eureka

<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
</dependency>

(2)feign

  <!--feign依赖包-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
</dependency>

(3) config【没有改变】

    <!--配置中心依赖包-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-config-server</artifactId>
</dependency>
<!--配置中心-客户端依赖包-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-config</artifactId>
</dependency>

(4)bus【没有改变】

    <!--健康检测管理中心 ,可刷新配置文件-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency> <!--spring cloud bus,消息总线-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-bus-amqp</artifactId>
</dependency>

(5)zuul

    <!--zuul 网关-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-zuul</artifactId>
</dependency>

//todo

2.0.9.RELEASE 对应Finchley.RELEASE

最新文章

  1. Restful资源文章
  2. [译]Angular2 和TypeScript -- 一次简要的预览
  3. C/C++_date&amp;time
  4. 编译Linux内核
  5. MYSQL C API : mysql_real_escape_string 二进制数据存储
  6. wpf 面试题目
  7. python函数 位置参数,关键字参数,可变参数优先级
  8. BM串匹配算法
  9. 细说OpenSessionInView问题
  10. 利用iOS API编写简单微博客户端全过程
  11. 如果你只会JQuery的插件式开发, 那么你可以进来看看?
  12. 存储过程 分页【NOT IN】和【&gt;】效率大PK 千万级别数据测试结果
  13. BZOJ 1827: [Usaco2010 Mar]gather 奶牛大集会
  14. A Byte of Python 笔记(12)python 标准库:sys、os,更多内容
  15. ABAP函数:VIEW_MAINTENANCE_CALL(维护表视图等)
  16. 让表格table呈现边框,不用给tr、td加边框的写法
  17. Git 版本退回commit
  18. (二叉树 BFS DFS) leetcode 104. Maximum Depth of Binary Tree
  19. 【网址】.net/dot net可再发行组件下载哪家强
  20. python时间和日期

热门文章

  1. 【Spark】【复习】Spark入门考前概念相关题复习
  2. 【antd】表单-单页面多表单提交功能
  3. 学Java,Java书籍的最佳阅读顺序
  4. Kerboros 认证
  5. 多个工作簿拆分(Excel代码集团)
  6. 关于后端 Entity Model Domain 的分界线
  7. Sublime Text3 Package Control Emmet插件安装
  8. 贪心——55. 跳跃游戏 &amp;&amp; 45.跳跃游戏II
  9. 论文解读SDCN《Structural Deep Clustering Network》
  10. @Transactional 注解实现