Spring Cloud 2023.0.0-M2 (又名 Leyton) 已釋出

釋出 | Olga Maciaszek-Sharma | 2023年9月29日 | ...

我謹代表社群宣佈,Spring Cloud 2023.0 釋出火車 的 Milestone 2 (M2) 版本現已釋出。該版本可在 Spring 里程碑 倉庫中找到。您可以檢視 2023.0 的釋出說明以獲取更多資訊。

2023.0.0-M2 釋出火車 的顯著變化

在此里程碑中,我們將所有 Spring Cloud 專案的文件遷移到了 Antora。

在此檢視所有問題和拉取請求

Spring Cloud Commons

  • 重啟時重新整理作用域 - 一項專為適應 JVM Checkpoint-Restart 環境變化而設計的功能 (PR 1266)

Spring Cloud Gateway

  • TokenRelay 過濾器中指定 clientRegistrationId。(PR 2922) 閘道器可用於管理多個 ClientRegistrations,並且每個路由可以確定使用哪個客戶端註冊。這在以下場景中非常有用(例如):
    • 同時使用多個授權伺服器。
    • 同時使用多種客戶端認證方法。
    • 部分/所有下游服務需要不同的 clientId、aud 宣告等。
    • 部分/所有下游服務需要不同的令牌格式(例如 JWT、不透明令牌)

Spring Cloud OpenFeign

  • 升級到 Feign 12.5 (PR_907)

Spring Cloud Task

  • 使用者現在可以使用外部執行 ID 查詢任務執行。(PR_863)

Spring Cloud Function

Spring Cloud Stream

  • 一些重要的錯誤修復和增強,主要與 Apache Kafka 繫結器和新的 Apache Pulsar 繫結器相關。

以下模組已作為 2023.0.0-M2 的一部分進行了更新

模組 版本 問題
Spring Cloud Consul 4.1.0-M2 (問題)
Spring Cloud Gateway 4.1.0-M2 (問題)
Spring Cloud Zookeeper 4.1.0-M2 (問題)
Spring Cloud Bus 4.1.0-M2 (問題)
Spring Cloud Stream 4.1.0-M2 (問題)
Spring Cloud Function 4.1.0-M2 (問題)
Spring Cloud OpenFeign 4.1.0-M2 (問題)
Spring Cloud Vault 4.1.0-M2 (問題)
Spring Cloud Commons 4.1.0-M2 (問題)
Spring Cloud Task 3.1.0-M2 (問題)
Spring Cloud Kubernetes 3.1.0-M2 (問題)
Spring Cloud Starter Build 2023.0.0-M2 (問題)
Spring Cloud Config 4.1.0-M2 (問題)
Spring Cloud Build 4.1.0-M2 (問題)
Spring Cloud Netflix 4.1.0-M2 (問題)
Spring Cloud CircuitBreaker 3.1.0-M2 (問題)
Spring Cloud Contract 4.1.0-M2 (問題)
Spring Cloud Task 3.1.0-M2 (問題)

一如既往,我們歡迎您在 GitHubStack OverflowTwitter 上提供反饋。

使用帶 BOM 的 Maven (僅用於依賴管理) 入門

<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>2023.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 'java'
  id 'org.springframework.boot' version '3.2.0-M3'
  id 'io.spring.dependency-management' version '1.1.3'
}

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

java {
  sourceCompatibility = '17'
}

repositories {
  mavenCentral()
  maven { url 'https://repo.spring.io/milestone' }
}

ext {
  set('springCloudVersion', "2023.0.0-M2")
}

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 社群的所有近期活動。

檢視全部