领先一步
VMware 提供培训和认证,助您加速进步。
了解更多我谨代表社区,很高兴地宣布 Spring Cloud 2021.0 发布系列的服务版本 2 (Service Release 2) 今天可用。这主要是为了修复错误。可以在 Maven Central 中找到该版本。您可以查看 2021.0.2 的 发布说明以获取更多信息。
有关发布中包含的所有问题的 项目页面。
EurekaRenewedEvent 引起的高负载 ([4052]https://github.com/spring-cloud/spring-cloud-netflix/pull/4052)以下模块已作为 2021.0.2 的一部分进行了更新
| 模块 | 版本 | 问题 |
|---|---|---|
| Spring Cloud Config | 3.1.2 | (issues) |
| Spring Cloud Circuitbreaker | 2.1.2 | (issues) |
| Spring Cloud Kubernetes | 2.1.2 | (issues) |
| Spring Cloud Commons | 3.1.2 | (issues) |
| Spring Cloud Sleuth | 3.1.2 | (issues) |
| Spring Cloud Contract | 3.1.2 | (issues) |
| Spring Cloud Task | 2.4.2 | (issues) |
| Spring Cloud Gateway | 3.1.2 | (issues) |
| Spring Cloud OpenFeign | 3.1.2 | (issues) |
| Spring Cloud Starter Build | 2021.0.2 | |
| Spring Cloud Netflix | 3.1.2 | (issues) |
| Spring Cloud Function | 3.2.4 | |
| Spring Cloud Stream | 3.2.3 |
一如既往,我们欢迎大家在 GitHub、Gitter、Stack Overflow 或 Twitter 上提供反馈。
Maven 起步使用 BOM(仅依赖管理)
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>2021.0.2</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.7'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
}
repositories {
mavenCentral()
}
ext {
set('springCloudVersion', "2021.0.2")
}
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}"
}
}