我代表社区高兴地宣布,Spring Cloud 2021.0.3版列车今天正式发布。该版本可在Maven中心找到。你可以查看2021.0.3发布说明,了解更多信息。
2021.0.3发布列车的显著变化
该版本主要是为了与Spring Boot 2.7.0以及Spring Boot 2.6.x兼容。
要查看该版本中的所有问题和拉动请求,请看这里。
Spring Cloud Sleuth
- 错误修复和小的改进
春天云合同
- 错误修复和JsonAssert升级
春天云网关
- 错误修复和对
PrefixPath过滤器的路径变量支持。
以下模块作为2021.0.3的一部分进行了更新。
| 模块 | 版本 | 问题 |
|---|---|---|
| Spring Cloud Stream | 3.2.4 | |
| 春天云配置 | 3.1.3 | (问题) |
| Spring Cloud Build | 3.1.3 | (问题) |
| 春天的云端侦探 | 3.1.3 | (问题) |
| Spring Cloud Contract | 3.1.3 | (问题) |
| 春天云启动器构建 | 2021.0.3 | |
| 春天云网关 | 3.1.3 | (问题) |
| Spring Cloud Consul | 3.1.1 | |
| Spring Cloud Netflix | 3.1.3 | |
| Spring Cloud Cloudfoundry | 3.1.2 | |
| 春天云保险库 | 3.1.1 | |
| Spring Cloud Kubernetes | 2.1.3 | (问题) |
| Spring Cloud Bus | 3.1.2 | |
| 春天云Zookeeper | 3.1.2 | |
| 春天云任务 | 2.4.3 | (问题) |
| Spring Cloud Cli | 3.1.1 | |
| Spring Cloud Commons | 3.1.3 | |
| Spring Cloud Openfeign | 3.1.3 | |
| 春天云功能 | 3.2.5 | |
| 弹簧云断路器 | 2.1.3 |
一如既往,我们欢迎在GitHub、Gitter、Stack Overflow或Twitter上提出反馈。
要开始使用Maven与BOM(仅依赖性管理)。
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>2021.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 'org.springframework.boot' version '2.6.8'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '8'
repositories {
mavenCentral()
}
ext {
set('springCloudVersion', "2021.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}"
}
}