SpringBoot与SpringCloud的版本对应详细版
作者:梦幻朵颜
出处:https://www.cnblogs.com/zhuwenjoyce/你的一个点赞,一句留言,都将是博主的前进动力!!! 版权:本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
SpringBoot与SpringCloud的版本对应详细版
大版本对应:
Spring Boot | Spring Cloud |
---|---|
1.2.x | Angel版本 |
1.3.x | Brixton版本 |
1.4.x stripes | Camden版本 |
1.5.x | Dalston版本、Edgware版本 |
2.0.x | Finchley版本 |
2.1.x | Greenwich.SR2 |
在实际开发过程中,我们需要更详细的版本对应 (https://start.spring.io/actuator/info):
spring-boot-starter-parent | spring-cloud-dependencies | ||||
---|---|---|---|---|---|
版本号 | 发布日期 | 版本号 | 发布日期 | ||
1.5.2.RELEASE | 2017年3月 | 稳定版 | Dalston.RC1 | 2017年未知月 | |
1.5.9.RELEASE | 2017年11月 | 稳定版 | Edgware.RELEASE | 2017年11月 | 稳定版 |
1.5.16.RELEASE | Edgware.SR5 | ||||
1.5.20.RELEASE | Edgware.SR5 | ||||
Spring Boot >=2.0.0.M3 and <2.0.0.M5 | Finchley.M2 | ||||
Spring Boot >=2.0.0.M5 and <=2.0.0.M5 | Finchley.M3 | ||||
Spring Boot >=2.0.0.M6 and <=2.0.0.M6 | Finchley.M4 | ||||
Spring Boot >=2.0.0.M7 and <=2.0.0.M7 | Finchley.M5 | ||||
Spring Boot >=2.0.0.RC1 and <=2.0.0.RC1 | Finchley.M6 | ||||
Spring Boot >=2.0.0.RC2 and <=2.0.0.RC2 | Finchley.M7 | ||||
Spring Boot >=2.0.0.RELEASE and <=2.0.0.RELEASE | Finchley.M9 | ||||
Spring Boot >=2.0.1.RELEASE and <2.0.2.RELEASE | Finchley.RC1 | ||||
Spring Boot >=2.0.2.RELEASE and <2.0.3.RELEASE | Finchley.RC2 | ||||
Spring Boot >=2.0.3.RELEASE and <2.0.999.BUILD-SNAPSHOT | Finchley.SR4 | ||||
Spring Boot >=2.0.999.BUILD-SNAPSHOT and <2.1.0.M3 | Finchley.BUILD-SNAPSHOT | ||||
Spring Boot >=2.1.0.M3 and <2.1.0.RELEASE | Greenwich.M1 | ||||
Spring Boot >=2.1.0.RELEASE and <2.1.9.BUILD-SNAPSHOT | Greenwich.SR2 | ||||
Spring Boot >=2.1.9.BUILD-SNAPSHOT and <2.2.0.M4 | Greenwich.BUILD-SNAPSHOT | ||||
Spring Boot >=2.2.0.M4 and <=2.2.0.M5 | Hoxton.M2 | ||||
Spring Boot >=2.2.0.BUILD-SNAPSHOT | Hoxton.BUILD-SNAPSHOT | ||||
待更新... |
spring官方对应查看网址:https://start.spring.io/actuator/info
spring-cloud Finchley.M2 "Spring Boot >=2.0.0.M3 and <2.0.0.M5" Finchley.M3 "Spring Boot >=2.0.0.M5 and <=2.0.0.M5" Finchley.M4 "Spring Boot >=2.0.0.M6 and <=2.0.0.M6" Finchley.M5 "Spring Boot >=2.0.0.M7 and <=2.0.0.M7" Finchley.M6 "Spring Boot >=2.0.0.RC1 and <=2.0.0.RC1" Finchley.M7 "Spring Boot >=2.0.0.RC2 and <=2.0.0.RC2" Finchley.M9 "Spring Boot >=2.0.0.RELEASE and <=2.0.0.RELEASE" Finchley.RC1 "Spring Boot >=2.0.1.RELEASE and <2.0.2.RELEASE" Finchley.RC2 "Spring Boot >=2.0.2.RELEASE and <2.0.3.RELEASE" Finchley.SR4 "Spring Boot >=2.0.3.RELEASE and <2.0.999.BUILD-SNAPSHOT" Finchley.BUILD-SNAPSHOT "Spring Boot >=2.0.999.BUILD-SNAPSHOT and <2.1.0.M3" Greenwich.M1 "Spring Boot >=2.1.0.M3 and <2.1.0.RELEASE" Greenwich.SR2 "Spring Boot >=2.1.0.RELEASE and <2.1.9.BUILD-SNAPSHOT" Greenwich.BUILD-SNAPSHOT "Spring Boot >=2.1.9.BUILD-SNAPSHOT and <2.2.0.M4" Hoxton.M2 "Spring Boot >=2.2.0.M4 and <=2.2.0.M5" Hoxton.BUILD-SNAPSHOT "Spring Boot >=2.2.0.BUILD-SNAPSHOT"
spring-cloud-dependencies 版本列表可查看:
https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-dependencies
spring-boot-starter-parent 版本列表可查看:
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-parent
在SpringCloud中,1.X和2.X版本在pom.xml中引入的jar包名字都不一样,比如有的叫spirng-cloud-starter-hystrix 有的叫spring-cloud-netflix-hystrix,维护起来会比较困难。
1.x版本pom.xml里几个基本用到的jar长这样:
<project xmlns="http://maven.apache.org/POM/4.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"><modelVersion>4.0.0</modelVersion><groupId>com.joyce</groupId><artifactId>joyce-test</artifactId><version>1.0</version><packaging>jar</packaging><parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>1.5.9.RELEASE</version><relativePath /> </parent><dependencyManagement><dependencies><dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-dependencies</artifactId><version>Edgware.RELEASE</version><type>pom</type><scope>import</scope></dependency></dependencies></dependencyManagement><properties><project.build.sourceEncoding>UTF-8</project.build.sourceEncoding></properties><dependencies><dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-feign</artifactId></dependency><dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-hystrix</artifactId></dependency><dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-zipkin</artifactId></dependency><dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-eureka</artifactId></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-actuator</artifactId></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId><exclusions><!-- 排除spring boot默认使用的tomcat,使用jetty --><exclusion><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-tomcat</artifactId></exclusion></exclusions></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-jetty</artifactId></dependency><dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-ribbon</artifactId></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-test</artifactId><scope>test</scope></dependency></dependencies>
</project>
在SpringBoot 1.5.9.RELEASE 版本中,junit测试类模版长这样:
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.web.client.RestTemplate;@RunWith(SpringRunner.class)
@SpringBootTest(classes=MyApplication.class)
public class MyApplicationTest {private static final org.slf4j.Logger LOG = LoggerFactory.getLogger(MyApplicationTest.class);@Autowiredprivate RestTemplate restTemplate;@Testpublic void test() {System.out.println("ok!!!");}@Testpublic void orderName() {try {String name = "joyce";String rr = restTemplate.getForObject("http://joyce-user/orderName?name="+name, String.class);LOG.info("rr====" + rr);} catch (Exception e) {e.printStackTrace();}}}
SpringBoot与SpringCloud的版本对应详细版相关推荐
- 史上最详细 最官方的 SpringBoot和SpringCloud的版本选择!!!! 绝对让你心服口服的版本选择方式!!!
一.Springboot版本选择 1.1.git源码地址 SpringBoot 1.2.SpringBoot2.0新特性 https://github.com/spring-projects/spri ...
- springboot和spring cloud版本兼容问题
自己搭建的一个项目中从spring boot到spring boot的时候出现启动报错: Correct the classpath of your application so that it co ...
- 一篇文章让你轻松搞定SpringBoot和SpringCloud之间的版本选择!!!
首先说明一下我认为我没有乱立标题或者是夸大标题,这篇文章肯定能告诉你该如何选择SpringBoot和SpringCloudd之间的版本,资料也是从官网拿的,并非胡乱捏造. 学的越来越多,基础不牢固,每 ...
- Burpsuite介绍及2022.8.2版本超详细安装教程(图文版)
Burpsuite介绍及2022.8.2版本超详细安装教程(图文版) 文章目录 Burpsuite介绍及2022.8.2版本超详细安装教程(图文版) Burpsuite是什么? Burpsuite环境 ...
- SpringBoot、SpringCloud、SpringCloudAlibaba的版本对应关系
文章目录 1.SpringBoot 和 Spring Cloud版本依赖关系 0)Spring Cloud版本名变更 1)SpringCloud发布版本与SpringBoot版本兼容性的表格 2)访问 ...
- PySpark之Python版本如何选择(详细版)
问题背景 公司目前有两套Spark集群和一套Hadoop集群用来做 数据相关的存储和计算.Hadoop的版本是2.7,Spark两套集群,一个是2.1.0版本,一个是 2.4.3版本.但是两个Spar ...
- 使用Docker部署SpringBoot项目(避坑+超级详细版本)
使用Docker部署SpringBoot项目(避坑+超级详细版本) 首先呢,非常感谢我们一起相遇在这个地方,想必此刻的你也是在一个学习求知的过程,我们一样,我们都是在求知的路上匍匐前进!看到这篇文章, ...
- Redis 超详细版教程笔记
视频教程:[狂神说Java]Redis最新超详细版教程通俗易懂 视频地址:https://www.bilibili.com/video/BV1S54y1R7SB 目录索引 nosql 阿里巴巴架构演进 ...
- SpringBoot和SpringCloud配置
SpringBoot和SpringCloud配置 一.springBoot配置 1.1.yml 1.2.pom 1.3.RestTemplate 二.注册中心 Spring Cloud Eureka ...
最新文章
- #23 Counter Cache Column
- HighNewTech:低代码(0代码/无代码,无需代码)开发的简介以及如何选择最合适的低代码开发工具
- 微信小程序中嵌套html_微信小程序:web-view嵌套H5实现微信支付功能解决方案及填坑...
- 复杂链表的复制(递归的两种实现方式)
- 广度优先搜索(BFS)——马的遍历(洛谷 P1443)
- SmartSql使用教程(1)——初探,建立一个简单的CURD接口服务
- Debian完全卸载清理MySQL服务器
- 正则表达式限制文本框内容
- dda算法_C和C ++中的DDA线图绘制算法
- 激活Navicat premium12时出现“Rsa public key not find“报错时的解决方法
- 再读红宝书(第四版)第二章 html 中的 javascript
- jenkins pipeline分目录检出多代码库方法
- Python编写三级目录(升级版)
- ZYNQ平台Linux4.6内核蓝牙音频
- 学校网站建设的必要性
- BIOS的两种引导模式
- 极速office(Word)文件怎么在方框里面打对勾
- 数据结构实验-稀疏一元多项式计算
- Drools基础语法
- css3魔方3乘3每层旋转_学习做旋转魔方 (css3)