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