Spring Cloud 2021.0.6 已釋出

釋出 | Oleg Zhurakousky | 2023 年 2 月 24 日 | ...

我很高興代表社群宣佈 Spring Cloud 2021.0.6 釋出系列(RELEASE)今天正式釋出。該版本可在 Maven Central 中找到。您可以檢視 2021.0.6 發行說明了解更多資訊

Spring Cloud 2021.0.6 釋出系列中的顯著變化

檢視專案頁面,瞭解此版本中包含的所有問題和拉取請求。

Spring Cloud Commons

  • 新增實用方法以使用使用者提供的區域配置區域偏好負載均衡 (#1174)

Spring Cloud Netflix

  • 允許設定獲取例項的超時時間 (#4110)

Spring Cloud Gateway

  • 修復了 CacheRequestBodyGatewayFilter 中的記憶體洩漏問題 (2842)

Spring Cloud Kubernetes

  • 當 secured 註解為 true 時使用 SSL (#1141)

Spring Cloud OpenFeign

  • 允許配置 Apache HttpClient 的請求超時時間 (#799)

Spring Cloud Stream

  • 增強了自定義路由函式,確保它們不建立輸出繫結(類似於提供的函式)
  • 在多繫結場景下,整合父/子上下文之間的核心 bean 傳播
  • 一些錯誤修復

Spring Cloud Function

  • 多項改進和錯誤修復,主要集中在 AWS Lambda 支援方面

以下模組已更新,作為 2021.0.6 的一部分

模組 版本
Spring Cloud Netflix 3.1.5
Spring Cloud Config 3.1.6
Spring Cloud Build 3.1.6
Spring Cloud Sleuth 3.1.7
Spring Cloud Gateway 3.1.6
Spring Cloud Starter Build 2021.0.6
Spring Cloud Consul 3.1.2
Spring Cloud Contract 3.1.6
Spring Cloud Vault 3.1.2
Spring Cloud Kubernetes 2.1.6
Spring Cloud Zookeeper 3.1.3
Spring Cloud Task 2.4.6
Spring Cloud Openfeign 3.1.6
Spring Cloud Circuitbreaker 2.1.6
Spring Cloud Stream 3.2.7
Spring Cloud Commons 3.1.6
Spring Cloud Function 3.2.9

一如既往,歡迎透過 GitHubGitterStack OverflowTwitter 提供反饋。

使用 Maven 和 BOM(僅依賴管理)開始

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

group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '8'

repositories {
  mavenCentral()
}

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

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 社群中所有即將舉辦的活動。

檢視全部