搶先一步
VMware 提供訓練和認證,可加速您的進度。
了解更多我謹代表社群宣布,Spring Cloud Greenwich Release Train 的 Service Release 3 (SR3) 今天已推出。 此版本可在 Maven Central 中找到。 您可以查看 Greenwich 版本資訊以取得更多資訊。 在此版本中,所有專案中關閉的所有問題都可以在 GitHub 上的 Spring Cloud Greenwich.SR3 專案中找到
Spring Cloud Greenwich.M3 是第一個包含阻斷式和非阻斷式負載平衡器用戶端實作的版本,作為進入維護模式的 Netflix Ribbon 的替代方案。
若要將新的 BlockingLoadBalancerClient
與 RestTemplate
搭配使用,您需要在應用程式的類別路徑中包含 org.springframework.cloud:spring-cloud-loadbalancer
。 當使用 @LoadBalanced WebClient.Builder
時,相同的相依性可以用於反應式應用程式 - 唯一的區別是 Spring Cloud 將自動設定 ReactorLoadBalancerExchangeFilterFunction
實例。 請參閱文件以取得更多資訊。 新的 ReactorLoadBalancerExchangeFilterFunction
也可以自動注入並直接傳遞給 WebClient.Builder
(請參閱文件)。 對於所有這些功能,底層使用基於 Project Reactor 的 RoundRobinLoadBalancer
。
DiscoveryClient
實作可以從所有命名空間檢索服務/actuator/gateway/routes
的路由的更多詳細資訊JerseyReplicationClient
的功能Greenwich.SR3 版本更新了以下模組
| 模組 | 版本 | 問題 |--- |--- |--- |--- | Spring Cloud Commons | 2.1.3.RELEASE | (問題) | Spring Cloud Openfeign | 2.1.3.RELEASE | (問題) | Spring Cloud Security | 2.1.4.RELEASE | (問題) | Spring Cloud Stream | Fishtown.SR4 |
| Spring Cloud Kubernetes | 1.0.3.RELEASE | (問題) | Spring Cloud Build | 2.1.7.RELEASE |
| Spring Cloud Zookeeper | 2.1.3.RELEASE |
| Spring Cloud Gateway | 2.1.3.RELEASE | (問題) | Spring Cloud Dependencies | Greenwich.SR3 |
| Spring Cloud Netflix | 2.1.3.RELEASE | (問題) | Spring Cloud Bus | 2.1.3.RELEASE | (問題) | Spring Cloud Dependencies Parent | 2.1.7.RELEASE |
| Spring Cloud Task | 2.1.3.RELEASE |
| Spring Cloud Starter | Greenwich.SR3 |
| Spring Cloud Cloudfoundry | 2.1.3.RELEASE |
| Spring Cloud | Greenwich.SR3 |
| Spring Cloud Vault | 2.1.3.RELEASE |
| Spring Cloud Config | 2.1.4.RELEASE | (問題) | Spring Cloud Release | Greenwich.SR3 |
| Spring Cloud Function | 2.0.2.RELEASE | (問題) | Spring Cloud Consul | 2.1.3.RELEASE | (問題) | Spring Cloud Starter Parent | Greenwich.SR3 |
| Spring Cloud Gcp | 1.1.3.RELEASE |
| Spring Cloud Sleuth | 2.1.3.RELEASE |
| Spring Cloud Aws | 2.1.3.RELEASE |
| Spring Cloud Contract | 2.1.3.RELEASE | (問題)
一如既往,我們歡迎您在 GitHub、Gitter、Stack Overflow 或 Twitter 上提供意見反應。
若要開始使用 Maven 並搭配 BOM (僅限依賴性管理)
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Greenwich.SR3</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.SR3'
}
}
dependencies {
compile 'org.springframework.cloud:spring-cloud-starter-config'
compile 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
...
}