领先一步
VMware 提供培训和认证,助您快速提升。
了解更多我很高兴代表社区宣布,Spring Cloud 2022.0.3 Release Train 的通用版本 (RELEASE) 于今日发布。该版本可在 Maven Central 中找到。您可以查阅 2022.0.3 版本说明获取更多信息。
此版本兼容 Spring Boot 3.1.x。
查看此版本的所有 issue 和 pull request 在此。
Spring Cloud Config 中存在一个已知缺陷,与通过服务发现定位配置服务器有关。为了在此版本中激活此功能,您需要在环境变量或系统属性中设置 spring.cloud.config.discovery.enabled=true
和 spring.cloud.config.discovery.serviceId
。此 bug 将在下个版本中修复。
以下模块已作为 2022.0.3 的一部分进行更新
模块 | 版本 | 问题 |
---|---|---|
Spring Cloud Kubernetes | 3.0.3 | (问题) |
Spring Cloud Task | 3.0.3 | (问题) |
Spring Cloud Function | 4.0.3 | (问题 |
Spring Cloud Commons | 4.0.3 | (问题) |
Spring Cloud Circuitbreaker | 3.0.2 | |
Spring Cloud Openfeign | 4.0.3 | (问题) |
Spring Cloud Gateway | 4.0.6 | (问题) |
Spring Cloud Stream | 4.0.3 | (问题) |
Spring Cloud Contract | 4.0.3 | (问题) |
Spring Cloud Config | 4.0.3 | (问题) |
Spring Cloud Build | 4.0.3 | |
Spring Cloud Starter Build | 2022.0.3 | |
Spring Cloud Netflix | 4.0.2 | (问题) |
一如既往,欢迎在 GitHub、Gitter、Stack Overflow 或 Twitter 上提供反馈。
请关注我们的 Github Projects 和 Release Milestones,以跟踪我们的 2023.0 Release Train(代号 Leyton)。
使用 Maven 和 BOM (仅依赖管理) 入门
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>2022.0.3</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.1.0'
id 'io.spring.dependency-management' version '1.1.0'
}
repositories {
mavenCentral()
}
ext {
set('springCloudVersion', "2022.0.3")
}
dependencies {
implementation 'org.springframework.cloud:spring-cloud-starter-config'
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}