spring cloud 与spring boot的版本对应总结

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

原文地址:https://www.cnblogs.com/c2g5201314/p/12988688.html