Spring Cloud 2023.0.0-M2 (aka Leyton) 已發布

發布 | Olga Maciaszek-Sharma | 2023 年 9 月 29 日 | ...

我在此謹代表社群宣布 Spring Cloud 2023.0 發行系列的里程碑 2 (M2) 版本於今日發布。此版本可在 Spring Milestone 儲存庫中找到。您可以查看 2023.0 發行說明以取得更多資訊

2023.0.0-M2 發行系列中的重大變更

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

請參閱此處的所有問題和提取請求。

Spring Cloud Commons

  • 重新啟動時刷新 Scope - 一項量身定制的功能,允許在 JVM 檢查點重新啟動時適應環境變更 (PR 1266)

Spring Cloud Gateway

  • TokenRelay 篩選器中指定 clientRegistrationId。 (PR 2922) Gateway 可用於管理多個 ClientRegistration,且每個路由可以決定要使用哪個用戶端註冊。這在以下情境中非常有用 (例如)
    • 同時使用多個授權伺服器。
    • 同時使用多個用戶端驗證方法。
    • 部分/所有下游服務需要不同的 clientId、aud 宣告等。
    • 部分/所有下游服務需要不同的權杖格式 (例如 JWT、不透明)

Spring Cloud OpenFeign

  • 已升級至 Feign 12.5 (PR_907)

Spring Cloud Task

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

Spring Cloud Function

Spring Cloud Stream

以下模組已更新為 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 上提供意見反應。

開始使用 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>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 社群中所有即將到來的活動。

檢視全部