领先一步
VMware 提供培训和认证,助您加速进步。
了解更多我谨代表社区宣布,Spring Cloud 2021.0.9 发布火车(通用发布版 RELEASE)现已发布。您可以在 Maven Central 找到该版本。您可以查看 2021.0.9 的 发布说明以获取更多信息。
此 Spring Cloud 版本基于 Spring Boot 2.6.15,并兼容 Spring Boot 2.7.18 和 3.0.13。
这将是 Spring Cloud 2021.0.x 系列最后一个开源版本。此发布火车中的所有项目都已达到生命周期终点。建议您升级到 Spring Cloud 2022.0.x 或 2023.0.x。
以下模块已在 2021.0.9 中更新
| 模块 | 版本 | 问题 |
|---|---|---|
| Spring Cloud Netflix | 3.1.8 | (issues) |
| Spring Cloud Stream | 3.2.10 | (issues) |
| Spring Cloud Starter Build | 2021.0.9 | (issues) |
| Spring Cloud Consul | 3.1.5 | (issues) |
| Spring Cloud Cloudfoundry | 3.1.4 | (issues) |
| Spring Cloud Contract | 3.1.9 | (issues) |
| Spring Cloud Zookeeper | 3.1.5 | (issues) |
| Spring Cloud Sleuth | 3.1.10 | (issues) |
| Spring Cloud Bus | 3.1.3 | (issues) |
| Spring Cloud Function | 3.2.12 | (issues) |
| Spring Cloud Openfeign | 3.1.9 | (issues) |
| Spring Cloud Config | 3.1.9 | (issues) |
| Spring Cloud Circuitbreaker | 2.1.8 | (issues) |
| Spring Cloud Build | 3.1.9 | (issues) |
| Spring Cloud Kubernetes | 2.1.9 | (issues) |
| Spring Cloud Commons | 3.1.8 | (issues) |
| Spring Cloud Vault | 3.1.4 | (issues) |
一如既往,我们欢迎大家在 GitHub、Gitter、Stack Overflow 或 Twitter 上提供反馈。
Maven 起步使用 BOM(仅依赖管理)
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>2021.0.9</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
buildscript {
dependencies {
classpath "io.spring.gradle:dependency-management-plugin:1.0.2.RELEASE"
}
}
apply plugin: "io.spring.dependency-management"
dependencyManagement {
imports {
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:2021.0.9'
}
}
dependencies {
compile 'org.springframework.cloud:spring-cloud-starter-config'
compile 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
...
}