Spring Cloud 2022.0.2 版本已發佈

發佈 | Spencer Gibb | 2023 年 3 月 30 日 | ...

我謹代表社群,很高興宣布 Spring Cloud 2022.0.2 Release Train 的正式發行版 (RELEASE) 今天已發佈。此版本可在 Maven Central 找到。您可以查看 2022.0.2 發行說明 以取得更多資訊。

2022.0.2 Release Train 中的重要變更

請參閱此版本中包含的所有問題和提取請求 此處

Spring Cloud Kubernetes

  • 新增了使用 Fabric8 DiscoveryClient 支援外部名稱服務的功能 (#1243)
  • 將 Pod metadata 和註釋新增至 ServiceInstance (#1254)

Spring Cloud Contract

  • 允許 sendMessage 處理來自檔案的 body (.1867)
  • 使用 RestTemplate 攔截器放寬 SSL 驗證 (#1869)

Spring Cloud Commons

  • 允許批量發出健康檢查實例 (#1122)

Spring Cloud OpenFeign

  • 為使用者提供的參數和回傳類型註冊原生反射提示 (#849)
  • 支援在執行時為原生映像檔設定 FeignClient URL (#807)
  • 允許為底層 OKHttp 用戶端設定協定 (#825)
  • 新增使用 factory bean 作為 Fallback 的可能性 (#822)

Spring Cloud Function

錯誤修正與增強功能

Spring Cloud Stream

在批次模式中新增 DLQ 支援 錯誤修正與增強功能

Spring Cloud Consul

  • 修正了當使用 spring.config.import=consul: 時,CONSUL_TOKEN 未被讀取的問題 (738)
  • ACL Token 現在會傳遞至 agentCheckPass (770)

Spring Cloud Gateway

  • 現在使用本機回應快取時可以停用全域快取 (2895)

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

模組 版本 議題
Spring Cloud Vault 4.0.1 (議題)
Spring Cloud Circuitbreaker 3.0.1  
Spring Cloud Kubernetes 3.0.2 (議題)
Spring Cloud Task 3.0.2 (議題)
Spring Cloud Function 4.0.2 (議題)
Spring Cloud Commons 4.0.2 (議題)
Spring Cloud Openfeign 4.0.2 (議題)
Spring Cloud Stream 4.0.2  
Spring Cloud Consul 4.0.2 (議題)
Spring Cloud Contract 4.0.2 (議題)
Spring Cloud Gateway 4.0.4 (議題)
Spring Cloud Config 4.0.2 (議題)
Spring Cloud Netflix 4.0.1 (議題)
Spring Cloud Build 4.0.2  

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

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

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-dependencies</artifactId>
            <version>2022.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 'java'
  id 'org.springframework.boot' version '3.0.5'
  id 'io.spring.dependency-management' version '1.1.0'
}

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

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

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

取得 Spring 電子報

隨時掌握 Spring 電子報的最新消息

訂閱

領先一步

VMware 提供培訓和認證,加速您的進展。

了解更多

取得支援

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

了解更多

即將到來的活動

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

查看全部