Spring Cloud Alibaba从孵化器版本毕业:https://github.com/alibaba/spring-cloud-alibaba,记录一下自己学习Spring Cloud Alibaba的笔记。

1.在整合Spring Cloud Alibaba之前,首先需要整合Spring Cloud

  在Spring Cloud的官网可以了解到目前最新的稳定版Spring Cloud版本,我所选择版本是Greenwich.SR3。在项目的pom.xml文件中加入以下代码段就可以整合Spring Cloud了。

 <dependencyManagement>
<dependencies>
<!-- 整合spring-cloud-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Greenwich.SR3</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

2.接下来整合Spring CLoud Alibaba

整合Spring CLoud Alibaba需要注意与Spring Cloud之间的版本对应,以下是官网给出的版本对应关系。

Spring Cloud Version Spring Cloud Alibaba Version Spring Boot Version

Spring Cloud Greenwich

2.1.0.RELEASE

2.1.X.RELEASE

Spring Cloud Finchley

2.0.0.RELEASE

2.0.X.RELEASE

Spring Cloud Edgware

1.5.0.RELEASE

1.5.X.RELEASE

对于我所使用的 Spring Cloud Greenwich.SR3版本,只需要在 dependencyManagement 中添加如下内容:

<!-- 整合spring-cloud-alibaba-->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
<version>2.1.0.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>

如果你使用 Spring Cloud Finchley 版本,请在 dependencyManagement 中添加如下内容:

<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
<version>2.0.0.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>

如果你使用 Spring Cloud Edgware 版本,请在 dependencyManagement 中添加如下内容:

<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
<version>1.5.0.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>

整合完毕。

最新文章

  1. 使用logrotate分割Tomcat的catalina日志
  2. java实现面向对象和javaScript基于对象的区别&amp;java垃圾回收机制和其他编程语言的比较
  3. 在 iTunes content中创建新的版本时,出现构建版本后面没有加号。
  4. [nRF51822] 3、 新年也来个总结——图解nRF51 SDK中的Button handling library和FIFO library
  5. (转) Docker swarm - 使用体验 1+2
  6. sql 提取数字、字母、汉字
  7. Model层数据验证
  8. 在茫茫人海中发现相似的你——局部敏感哈希(LSH)
  9. 《嵌入式Linux基础教程》补充阅读建议电子数目下载
  10. 在Win8.1(64位)系统上安装Scrapy(python 2.7.7)
  11. SQL 四种连接查询(内连接、左连接、右连接、全连接)
  12. sizeof与strlen的不同
  13. 【leetcode81】Product of Array Except Self
  14. 加密方法与HTTPS 原理详解
  15. easyUI使用dailog实现弹出框带表单功能
  16. Hbase记录-client访问zookeeper大量断开以及参数调优分析(转载)
  17. Coursera台大机器学习技法课程笔记07-Blending and Bagging
  18. hexo静态博客的安装及应用实践记录
  19. Python 爬虫-Requests库入门
  20. Django中间件执行流程

热门文章

  1. C语言实现简单的停车场管理系统
  2. Oracle中的统计信息
  3. JS构造函数中有return
  4. android: Android水波纹点击效果
  5. ISO/IEC 9899:2011 条款6.8.5——迭代语句
  6. 004-行为型-02-模板方法模式(Template Method)
  7. get请求utf-8解码
  8. 【JAVA】java注解的自定义和使用
  9. JAVA8中接口的一些新用法(springboot环境)
  10. netty WEBSOKET 客户端 JAVA