領先一步
VMware 提供培訓和認證,以加速您的進展。
了解更多謹代表社群,我很高興地宣布 Spring Cloud Greenwich Release Train 的正式版本 (RELEASE) 今天已推出。 此版本可在 Maven Central 中找到。 您可以查看 Greenwich 的發布說明以取得更多資訊。
Edgware release train 將於 2019 年 8 月 1 日達到 EOL 狀態。 您可以在此處閱讀正式公告。
Spring Cloud Finchley release train 被視為主要版本,並與 Spring Boot 2.0.x 版本相關聯。 因此,當 Spring Boot 2.0.x 版本分支被標記為 EOL 時,Spring Cloud Finchley release train 將達到 EOL 狀態。 一旦確定日期,將在此部落格上發布相關公告。
Spring Cloud Greenwich release train 被視為次要版本,將繼續支援 Spring Boot 2.x 版本分支。
所有專案都進行了更新,以支援 Java 11。
Greenwich Release train 中包含兩個新專案:Spring Cloud GCP (提供與 Google Cloud Platform 的整合) 以及 Spring Cloud Kubernetes (提供與 Kubernetes 的整合)。
最近,Netflix 宣布 Hystrix 進入維護模式。 Ribbon 自 2016 年以來一直處於 類似狀態。 儘管 Hystrix 和 Ribbon 現在處於維護模式,但它們仍在 Netflix 大規模部署。
Hystrix Dashboard 和 Turbine 已被 Atlas 取代。 這些專案的最後一次提交分別是兩年和四年前。 Zuul 1 和 Archaius 1 都已被不向後相容的更高版本取代。
下列 Spring Cloud Netflix 模組和對應的啟動器將被置於維護模式
這不包括 Eureka 或 concurrency-limits 模組。
將模組置於維護模式表示 Spring Cloud 團隊將不再向該模組添加新功能。 我們將修復阻礙錯誤和安全性問題,並且我們也將考慮和審查來自社群的小型提取請求。
我們計劃從Greenwich release train正式發布起,**至少**一年內繼續支援這些模組。
我們建議以下替代方案來取代這些模組提供的功能。
目前 | 替代方案 |
---|---|
Hystrix | Resilience4j |
Hystrix Dashboard / Turbine | Micrometer + 監控系統 |
Ribbon | Spring Cloud Loadbalancer |
Zuul 1 | Spring Cloud Gateway |
Archaius 1 | Spring Boot 外部配置 + Spring Cloud Config |
請關注未來關於 Spring Cloud Loadbalancer 以及與新的 Netflix 專案 Concurrency Limits 整合的部落格文章。
請參閱 Google 發布公告。
ServiceInstance.instanceId
欄位的支援。ServiceInstance.instanceId
欄位的支援。請參閱 Spring Cloud Stream 發布公告。
ServiceInstance.instanceId
欄位的支援。請參閱 Spring Cloud Task 的發布公告。
ServiceInstance
metadata 以從 Kubernetes 標籤、註釋和端口獲取。KubernetesDiscoveryClient
。EnvironmentRepository
以支援 CredHub 後端。@QueryMap
註解的支援。instanceId
到 ServiceInstance
介面。ReactiveLoadBalancer
介面,並使用 Reactor 實作。以下模組已更新,作為 Greenwich.RELEASE 的一部分
| 模組 | 版本 | 問題 |--- |--- |--- |--- | Spring Cloud Sleuth | 2.1.0.RELEASE | (問題) | Spring Cloud Gcp | 1.1.0.RELEASE | (問題) | Spring Cloud Build | 2.1.2.RELEASE | | Spring Cloud Netflix | 2.1.0.RELEASE | (問題) | Spring Cloud Consul | 2.1.0.RELEASE | | Spring Cloud Gateway | 2.1.0.RELEASE | (問題) | Spring Cloud | Greenwich.RELEASE | | Spring Cloud Function | 2.0.0.RELEASE | (問題) | Spring Cloud Stream | Fishtown.RELEASE | | Spring Cloud Zookeeper | 2.1.0.RELEASE | | Spring Cloud Cloudfoundry | 2.1.0.RELEASE | | Spring Cloud Aws | 2.1.0.RELEASE | | Spring Cloud Task | 2.1.0.RELEASE | | Spring Cloud Kubernetes | 1.0.0.RELEASE | (問題) | Spring Cloud Contract | 2.1.0.RELEASE | (問題) | Spring Cloud Release | Greenwich.RELEASE | | Spring Cloud Security | 2.1.0.RELEASE | | Spring Cloud Starter | Greenwich.RELEASE | | Spring Cloud Bus | 2.1.0.RELEASE | (問題) | Spring Cloud Config | 2.1.0.RELEASE | (問題) | Spring Cloud Vault | 2.1.0.RELEASE | (問題) | Spring Cloud Openfeign | 2.1.0.RELEASE | (問題) | Spring Cloud Commons | 2.1.0.RELEASE | | Spring Cloud Dependencies | 2.1.2.RELEASE |
與往常一樣,我們歡迎在 GitHub、Gitter、Stack Overflow 和 Twitter 上提供反饋。
開始使用 Maven 和 BOM(僅依賴管理)
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Greenwich.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-config</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</dependency>
...
</dependencies>
開始使用 Gradle
buildscript {
dependencies {
classpath "io.spring.gradle:dependency-management-plugin:1.0.2.RELEASE"
}
}
apply plugin: "io.spring.dependency-management"
dependencyManagement {
imports {
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Greenwich.RELEASE'
}
}
dependencies {
compile 'org.springframework.cloud:spring-cloud-starter-config'
compile 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
...
}