领先一步
VMware 提供培训和认证,助您加速进步。
了解更多我很高兴代表社区宣布,Spring Cloud 2023.0 发布列车的里程碑版本2 (M2) 于今日发布。该版本可在 Spring Milestone 仓库找到。您可以查看 2023.0 发布说明以获取更多信息。
在此里程碑中,我们已将所有 Spring Cloud 项目的文档迁移到 Antora。
在此查看所有问题和拉取请求。
TokenRelay 过滤器中指定 clientRegistrationId。 (PR 2922) 网关可以用于管理许多 ClientRegistrations,并且每个路由都可以确定使用哪个客户端注册。这在存在以下场景时非常有用(例如):用户现在可以将REST应用程序部署为AWS Lambdas或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}"
}
}