領先一步
VMware 提供培訓和認證,以加速您的進度。
瞭解更多我謹代表社群宣布,Spring Cloud 2021 Release Train 的 Milestone 3 (M3) 今天可用。 此版本可以在 Spring Milestone 儲存庫中找到。 您可以查看 2021 版本說明以取得更多資訊。
Milestone 3 與 Spring Boot 2.6.0-M3 相容。
請參閱專案頁面,以了解此版本中包含的所有問題和提取請求。
初始文件可在此處取得 這裡。範例、更多文件和單獨的部落格文章也將推出。
為 Config Maps 和 Secrets 新增了一個 EnvironmentRepsitory
,以支援使用 Spring Cloud Config Server 從 Kubernetes 資源提供組態資料。 現在 DockerHub 上提供了一個適用於 Spring Cloud Config Server 的映像檔,其中包含這個新的 EnvrionmentRepository
實作。 使用此新功能的說明文件位於 這裡。 #881
新增了一個新的 Kubernetes DiscoveryClient
實作,它利用了一個新的 Kubernetes Discovery Sever。 #886
以下模組已作為 2021.0.0-M3 的一部分進行更新
模組 | 版本 | 問題 |
---|---|---|
Spring Cloud Zookeeper | 3.1.0-M3 | |
Spring Cloud Cli | 3.1.0-M3 | |
Spring Cloud Consul | 3.1.0-M3 | |
Spring Cloud Bus | 3.1.0-M3 | |
Spring Cloud Gateway | 3.1.0-M3 | (問題) |
Spring Cloud Starter Build | 2021.0.0-M3 | |
Spring Cloud Vault | 3.1.0-M3 | |
Spring Cloud Cloudfoundry | 3.1.0-M3 | |
Spring Cloud Commons | 3.1.0-M3 | |
Spring Cloud Openfeign | 3.1.0-M3 | |
Spring Cloud Task | 2.4.0-M3 | (問題) |
Spring Cloud Config | 3.1.0-M3 | |
Spring Cloud Sleuth | 3.1.0-M3 | (問題) |
Spring Cloud Netflix | 3.1.0-M3 | (問題) |
Spring Cloud Kubernetes | 2.1.0-M3 | (問題) |
Spring Cloud Circuitbreaker | 2.1.0-M3 | |
Spring Cloud Contract | 3.1.0-M3 | (問題) |
一如既往,我們歡迎您在 GitHub、Gitter、Stack Overflow 或 Twitter 上提供意見反應。
開始使用 Maven 和 BOM(僅限相依性管理)
<repositories>
<repository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/milestone</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>2021.0.0-M3</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"
}
}
repositories {
maven {
url 'https://repo.spring.io/milestone'
}
}
apply plugin: "io.spring.dependency-management"
dependencyManagement {
imports {
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:2021.0.0-M3'
}
}
dependencies {
compile 'org.springframework.cloud:spring-cloud-starter-config'
compile 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
...
}