領先一步
VMware 提供培訓和認證,可加速您的進度。
瞭解更多我謹代表社群宣布 Spring Cloud Greenwich Release Train 的 Service Release 2 (SR2) 版本今天已發布。您可以在 Maven Central 找到此版本。您可以查看 Greenwich 的 發布說明 以取得更多資訊。
所有專案都已更新,以配合 Spring 的 nohttp 作業。
透過 Reactor 和 Reactor Netty 包含許多更新和修正。當啟用 Retry 或使用 Read Body Predicate 時,Gateway 也能有效率地快取請求正文。
允許在嵌入式模式下執行 Config Server 時使用 Vault。
新增對 Spring HATEOAS Resources 的支援。
新增對包含基於作用中配置文件的 ConfigMaps 的支援。
Gradle 外掛程式現在已發布到 Gradle 外掛程式入口網站。
以下模組已在 Greenwich.SR2 中更新
| 模組 | 版本 | 問題 |--- |--- |--- |--- | Spring Cloud Task | 2.1.2.RELEASE | | Spring Cloud Config | 2.1.3.RELEASE | (問題) | Spring Cloud Stream | Fishtown.SR3 | (問題) | Spring Cloud Sleuth | 2.1.2.RELEASE | (問題) | Spring Cloud Commons | 2.1.2.RELEASE | (問題) | Spring Cloud Openfeign | 2.1.2.RELEASE | (問題) | Spring Cloud Kubernetes | 1.0.2.RELEASE | (問題) | Spring Cloud Aws | 2.1.2.RELEASE | | Spring Cloud Vault | 2.1.2.RELEASE | | Spring Cloud Function | 2.0.2.RELEASE | (問題) | Spring Cloud Bus | 2.1.2.RELEASE | (問題) | Spring Cloud Build | 2.1.6.RELEASE | | Spring Cloud Zookeeper | 2.1.2.RELEASE | | Spring Cloud Gcp | 1.1.2.RELEASE | | Spring Cloud Contract | 2.1.2.RELEASE | (問題) | Spring Cloud Consul | 2.1.2.RELEASE | (問題) | Spring Cloud Security | 2.1.3.RELEASE | | Spring Cloud Gateway | 2.1.2.RELEASE | (問題) | Spring Cloud Cloudfoundry | 2.1.2.RELEASE | | Spring Cloud Netflix | 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.SR2</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.8.RELEASE"
}
}
apply plugin: "io.spring.dependency-management"
dependencyManagement {
imports {
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Greenwich.SR2'
}
}
dependencies {
compile 'org.springframework.cloud:spring-cloud-starter-config'
compile 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
...
}