SpringCloud系列之二:SpringCloud的认识起步

SpringCloud是微服务领域比较成熟的整体解决方案,包括了众多的规范和参考实现,如:eureka,config,zuul,openfeign等。springcloud alibaba参考实现基于生产环境的经验积累,受到了大家越来越多的重视,但其版本对应关系 与spring cloud默认实现有所不同。

其基本架构是:

  1. springcloud官方实现与springboot的对应关系,应该按照如下 表所示的版本进行对应,不然就会有各种错误与冲突。
    Table 1. Release train Spring Boot compatibility
    Release TrainBoot Version

    Hoxton

    2.2.x

    Greenwich

    2.1.x

    Finchley

    2.0.x

    Edgware

    1.5.x

    Dalston

    1.5.x

  2. springcloud alibaba实现与spring cloud、spring boot的对应关系 

    The Spring Cloud Alibaba & Spring Cloud & Spring Boot compatibility table:​

    Spring Cloud Version

    Spring Cloud Alibaba Version

    Spring Boot Version

    --------

    --------

    --------

    Spring Cloud Greenwich

    2.1.x.RELEASE

    2.1.x.RELEASE

    Spring Cloud Finchley

    2.0.x.RELEASE

    2.0.x.RELEASE

    Spring Cloud Edgware

    1.5.x.RELEASE

    1.5.x.RELEASE

  3. springcloud官方实现开始(Getting Started),以Greenwich版本为例:
        <parent>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-parent</artifactId>
            <version>2.1.6.RELEASE</version>
        </parent>
        <dependencyManagement>
            <dependencies>
                <dependency>
                    <groupId>org.springframework.cloud</groupId>
                    <artifactId>spring-cloud-dependencies</artifactId>
                    <version>Greenwich.SR5</version>
                    <type>pom</type>
                    <scope>import</scope>
                </dependency>
            </dependencies>
        </dependencyManagement>

     

  4. springcloud alibaba实现的Getting Started,以Greenwich版本为例:
       <parent>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-parent</artifactId>
            <version>2.1.6.RELEASE</version>
        </parent>
    <dependencyManagement>
        <dependencies>
            <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>
        </dependencies>
    </dependencyManagement>

     

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值