我代表社区高兴地宣布,Spring Cloud 2021.0.7发布列车(又称Jubilee)的一般可用性(RELEASE)今天已经推出。该版本可在Maven中心找到。你可以查看2021.0.7发布说明,了解更多信息。
2021.0.7发布列车中值得注意的变化
参见项目页面,了解该版本中包含的所有问题和拉动请求。
该版本主要是一个错误修复版本。
春天云网关
路径解析优化(2884)
以下模块作为2021.0.7的一部分进行了更新:
Module | Version |
---|---|
Spring Cloud Netflix | 3.1.6 |
Spring Cloud Config | 3.1.7 |
Spring Cloud Build | 3.1.7 |
Spring Cloud Sleuth | 3.1.8 |
Spring Cloud Gateway | 3.1.7 |
Spring Cloud Starter Build | 2021.0.7 |
Spring Cloud Consul | 3.1.3 |
Spring Cloud Contract | 3.1.7 |
Spring Cloud Vault | 3.1.3 |
Spring Cloud Kubernetes | 2.1.7 |
Spring Cloud Zookeeper | 3.1.3 |
Spring Cloud Task | 2.4.6 |
Spring Cloud OpenFeign | 3.1.7 |
Spring Cloud CircuitBreaker | 2.1.7 |
Spring Cloud Stream | 3.2.8 |
Spring Cloud Commons | 3.1.6 |
Spring Cloud Function | 3.2.10 |
Spring Cloud Cli | 3.1.1 |
一如既往,我们欢迎在 GitHub, on Gitter, on Stack Overflow, and on Twitter 上反馈。.
要开始使用Maven的BOM(仅限依赖性管理):
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>2021.0.7</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 '2.7.11'
id 'io.spring.dependency-management' version '1.0.15.RELEASE'
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '8'
repositories {
mavenCentral()
}
ext {
set('springCloudVersion', "2021.0.7")
}
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}"
}
}
转自 https://spring.io/blog/2023/04/28/spring-cloud-2021-0-7-has-been-released