文章目录
一、什么是Spring Cloud Alibaba?
1、Spring Cloud的子项目2、致力于微服务开发的一站式解决方案
①包含了微服务开发的基本组件
②基于Spring Cloud,符合Spring Cloud的标准
③阿里的微服务解决方案
二、Spring Cloud Alibaba的主要功能
三、版本与兼容性
1、Spring Cloud版本命名
Spring Cloud是一个伞形项目,由独立的项目组成,这些项目在原则上有不同的发布周期。 为了管理投资组合,一个BOM与一组对单个项目的依赖关系一起发布。为了避免与子项目混淆,发行列车的名称,而不是版本。这些名字是按字母顺序排列的(所以你可以按时间顺序排序),伦敦地铁站的名字(“Angel”是第一个版本,“Brixton”是第二个版本)。 当各个项目的点发布累积到一定数量时,或者其中一个关键错误需要所有人使用时,发布系列将推出名称以“ .SRX”结尾的“服务版本”, 其中“ X”是数字。
2、Spring Cloud生命周期
3、版本兼容性
Spring Cloud Alibaba孵化成功后
生产环境如何选择版本?
- 坚决不使用不稳定版本/end-of-life
- 尽量使用最新一代
四、为项目整合Spring Cloud Alibaba
添加Spring Cloud和Spring Cloud Alibaba相关依赖
<dependencyManagement>
<dependencies>
<!--整合Spring Cloud-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Greenwich.SR1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!--整合Spring Cloud Alibaba-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
<version>0.9.0.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>