領先一步
VMware 提供培訓和認證,以加速您的進度。
了解更多我謹代表社群宣布 Spring Cloud 2021.0 發布列車 (代號 Jubilee) 的 Milestone 2 (M2) 版本已於今日發布。 該版本可在 Spring Milestone 儲存庫中找到。 您可以查看 2021.0.0-M2 發布說明以獲取更多資訊。
Milestone 2 與 Spring Boot 2.6.0-M3 相容。
請參閱專案頁面,了解此版本中包含的所有問題和提取請求。
調整 Sleuth 的 NamedContextFactory
API。
允許 JDBC Environment repository 中除了 String 以外的類型 issue 1952
UUID v4 和大小寫不敏感 issue 1688。 允許在使用獨立 docker 映像時使用自定義 build.gradle
issue 1672。
支援 HTTP 2 協定, issue 7。
不同 Java 客戶端之間的一致性。
新增對 @CookieValue
注釋的支援 issue 604。
新增 Spring Kafka instrumentation issue 2013。
以下模組已更新,作為 2021.0.0-M2 的一部分
模組 | 版本 | 議題 |
---|---|---|
Spring Cloud Zookeeper | 3.1.0-M2 | |
Spring Cloud Commons | 3.1.0-M2 | (議題) |
Spring Cloud Kubernetes | 2.1.0-M2 | |
Spring Cloud Task | 2.4.0-M2 | |
Spring Cloud Bus | 3.1.0-M2 | |
Spring Cloud Sleuth | 3.1.0-M2 | (議題) |
Spring Cloud Cli | 3.1.0-M2 | |
Spring Cloud Starter Build | 2021.0.0-M2 | |
Spring Cloud Vault | 3.1.0-M2 | |
Spring Cloud Contract | 3.1.0-M2 | (議題) |
一如既往,我們歡迎在 GitHub、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-M2</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
plugins {
id 'org.springframework.boot' version '2.6.0.M3'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
}
repositories {
mavenCentral()
maven { url 'https://repo.spring.io/milestone' }
}
ext {
set('springCloudVersion', "2021.0.0-M2")
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
dependencies {
compile 'org.springframework.cloud:spring-cloud-starter-config'
compile 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
//...
}