抢先一步
VMware 提供培训和认证,助您加速前进。
了解更多我谨代表社区宣布,Spring Cloud 2023.0 发布火车 的 Milestone 2 (M2) 版本现已发布。该版本可在 Spring 里程碑 仓库中找到。您可以查看 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 上提供反馈。
使用带 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}"
}
}