当前位置 : 首页 » 文章分类 :  开发  »  Spring-Cloud

Spring-Cloud

Spring Cloud 笔记

Spring Cloud 中文网,各种Spring Cloud 中文文档,好多也是机翻不过鼠标悬浮会出现原版英文文档
https://springcloud.cc/

Spring Cloud Netflix进入维护模式(2018.12)

https://spring.io/blog/2018/12/12/spring-cloud-greenwich-rc1-available-now#spring-cloud-netflix-projects-entering-maintenance-mode

Spring Cloud Finchley 中改名的starter

从 Spring Boot 2.x 开始, 或者说 Spring Cloud Finchley 开始
改名的有以下 starter
spring-cloud-starter-eureka-server —> spring-cloud-starter-netflix-eureka-server
spring-cloud-starter-eureka —> spring-cloud-starter-netflix-eureka-client
spring-cloud-starter-ribbon —> spring-cloud-starter-netflix-ribbon
spring-cloud-starter-hystrix —>spring-cloud-starter-netflix-hystrix
spring-cloud-starter-hystrix-dashboard —> spring-cloud-starter-netflix-hystrix-dashboard
spring-cloud-starter-turbine —> spring-cloud-starter-netflix-turbine
spring-cloud-starter-turbine-stream –> spring-cloud-starter-netflix-turbine-stream
spring-cloud-starter-feign —> spring-cloud-starter-openfeign
spring-cloud-starter-zuul —> spring-cloud-starter-netflix-zuul

Spring Cloud/Spring Boot版本兼容性

http://start.spring.io/info 这个url返回一个 json,表明 Spring Initializr 当前使用的版本信息,其中有 Spring Boot 和 Spring Cloud 的版本对应关系。

"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.SR3":"Spring Boot >=2.1.0.RELEASE and <2.1.11.BUILD-SNAPSHOT",
           "Greenwich.BUILD-SNAPSHOT":"Spring Boot >=2.1.11.BUILD-SNAPSHOT and <2.2.0.M4",
           "Hoxton.RC2":"Spring Boot >=2.2.0.M4 and <2.2.2.BUILD-SNAPSHOT",
           "Hoxton.BUILD-SNAPSHOT":"Spring Boot >=2.2.2.BUILD-SNAPSHOT"
       }
Spring Cloud版本 Spring Boot版本
Hoxton 2.2.x
Greenwich 2.1.x
Finchley 2.0.x
Edgware 1.5.x
Dalston 1.5.x

Spring Cloud
https://spring.io/projects/spring-cloud#overview

Spring Cloud Release 记录
https://github.com/spring-cloud/spring-cloud-release/releases

spring-cloud-dependencies

<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>

spring-cloud-dependencies 也是一个依赖管理器的 pom 文件,与 spring-boot-starter-parent 的作用一样,不同的是 spring-cloud-dependencies 是对cloud的依赖管理。如:spring-cloud-starter-config、spring-cloud-starter-netflix-eureka-server

上一篇 Snowflake 雪花分布式ID生成算法

下一篇 Spring-Log

阅读
评论
728
阅读预计4分钟
创建日期 2019-03-03
修改日期 2019-12-13
类别

页面信息

location:
protocol:
host:
hostname:
origin:
pathname:
href:
document:
referrer:
navigator:
platform:
userAgent:

评论