Spring Cloud 2021.0.2 版本已發布

發佈 | Olga Maciaszek-Sharma | 2022年4月26日 | ...

我謹代表社群宣布,Spring Cloud 2021.0 發佈列車的 Service Release 2 今天正式發佈。本次發佈主要為錯誤修正版本。您可以在 Maven Central 找到此版本。您可以查閱 2021.0.2 發佈說明 以取得更多資訊。

2021.0.2 發佈列車中的重要變更

請參閱 專案頁面 以查看此版本中包含的所有問題。

Spring Cloud Commons

Spring Cloud Sleuth

  • 修正文件中 Sleuth 範例的連結 (2148)
  • 重新定位 SleuthSpanContextSupplier (2147)
  • 為 Reactor Netty 記錄存取日誌 (2132)
  • 修正 Zipkin WebClientSender 的 Content-Type (2139, 2126)
  • 修正 RSocket 的 Netty LEAK 報告 (2102)
  • 停止包裝 AbstractPlatformTransactionManager 實作 (2114)
  • 當建立 SkipPatternProvider 時發生 BeanCreationException 時,新增記錄訊息 (2136)
  • Prometheus Exemplars 的自動配置 (2143)
  • 修正 Rabbit、Kafka 和 Zipkin 的自動配置順序 (2134)
  • 修正 WebClient 造成的執行緒無效阻塞 (2127)
  • 修正無效的 ThreadLocalSpan 堆疊和追蹤上下文洩漏 (2064)

Spring Cloud Contract

  • WireMock 已升級至 2.33.0 (1771)

Spring Cloud OpenFeign

Spring Cloud Netflix

Spring Cloud CircuitBreaker

  • 允許配置預設隔離艙策略 (119)

Spring Cloud Kubernetes

  • 已更新至 Fabric8 5.10.2

以下模組已作為 2021.0.2 的一部分進行更新

模組 版本 問題
Spring Cloud Config 3.1.2 (issues)
Spring Cloud Circuitbreaker 2.1.2 (issues)
Spring Cloud Kubernetes 2.1.2 (issues)
Spring Cloud Commons 3.1.2 (issues)
Spring Cloud Sleuth 3.1.2 (issues)
Spring Cloud Contract 3.1.2 (issues)
Spring Cloud Task 2.4.2 (issues)
Spring Cloud Gateway 3.1.2 (issues)
Spring Cloud OpenFeign 3.1.2 (issues)
Spring Cloud Starter Build 2021.0.2
Spring Cloud Netflix 3.1.2 (issues)
Spring Cloud Function 3.2.4
Spring Cloud Stream 3.2.3

一如既往,我們歡迎您在 GitHubGitterStack OverflowTwitter 上提供意見回饋。

若要開始使用 Maven 及 BOM (僅依賴管理)

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-dependencies</artifactId>
            <version>2021.0.2</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.7'
  id 'io.spring.dependency-management' version '1.0.11.RELEASE'
  id 'java'
}

repositories {
  mavenCentral()
}

ext {
  set('springCloudVersion', "2021.0.2")
}

dependencies {
  implementation 'org.springframework.cloud:spring-cloud-starter-config'
  implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
  //...
}

dependencyManagement {
  imports {
    mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
  }
}

取得 Spring 電子報

隨時關注 Spring 電子報

訂閱

領先一步

VMware 提供訓練與認證,加速您的進展。

瞭解更多

取得支援

Tanzu Spring 在一個簡單的訂閱中,為 OpenJDK™、Spring 和 Apache Tomcat® 提供支援與二進位檔案。

瞭解更多

即將到來的活動

查看 Spring 社群中所有即將到來的活動。

檢視全部