領先一步
VMware 提供訓練和認證,以加速您的進展。
瞭解更多我在此謹代表社群宣布 Spring Cloud 2023.0 發行系列的里程碑 2 (M2) 版本於今日發布。此版本可在 Spring Milestone 儲存庫中找到。您可以查看 2023.0 發行說明以取得更多資訊。
在此里程碑中,我們已將所有 Spring Cloud 專案的文件遷移至 Antora。
請參閱此處的所有問題和提取請求。
TokenRelay
篩選器中指定 clientRegistrationId
。 (PR 2922) Gateway 可用於管理多個 ClientRegistration,且每個路由可以決定要使用哪個用戶端註冊。這在以下情境中非常有用 (例如)使用者現在可以將 REST 應用程式部署為 AWS Lambda 或 Azure Functions
透過 spring-cloud-function-web,將部署為 REST 端點的功能進行 CRUD 映射
以下模組已更新為 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 | (問題) |
一如既往,我們歡迎您在 GitHub、Stack Overflow 或 Twitter 上提供意見反應。
開始使用 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}"
}
}