领先一步
VMware 提供培训和认证,助您加速进步。
了解更多我代表社区很高兴宣布 Spring Cloud 的 2020.0.4 版本今天发布了。该版本可在 Maven Central 获取。您可以查看 2020.0 的发行说明获取更多信息。
在此处查看此版本包含的所有问题 此处。
这主要是一个错误修复和文档发布版本。2020.0.4 兼容 Spring Boot 2.4.x 和 2.5.x。
以下模块作为 2020.0.4 的一部分进行了更新
模块 | 版本 | 问题 |
---|---|---|
Spring Cloud Starter Build | 3.0.4 | |
Spring Cloud Netflix | 3.0.4 | (问题) |
Spring Cloud Openfeign | 3.0.4 | (问题) |
Spring Cloud Gateway | 3.0.4 | (问题) |
Spring Cloud Commons | 3.0.4 | (问题) |
Spring Cloud Config | 3.0.5 | (问题) |
Spring Cloud Consul | 3.0.4 | (问题) |
Spring Cloud Contract | 3.0.4 | (问题) |
Spring Cloud Kubernetes | 2.0.4 | (问题) |
Spring Cloud Sleuth | 3.0.4 | (问题) |
Spring Cloud Vault | 3.0.4 | (问题) |
Spring Cloud Zookeeper | 3.0.4 | |
Spring Cloud CircuitBreaker | 2.0.2 | |
Spring Cloud Stream | 3.1.4 | |
Spring Cloud Function | 3.1.4 |
一如既往,欢迎在 GitHub, 在 Stack Overflow, 或在 Twitter 上提供反馈。
使用 Maven 及 BOM (仅依赖管理) 开始使用
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>2020.0.4</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.11.RELEASE"
}
}
apply plugin: "io.spring.dependency-management"
dependencyManagement {
imports {
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:2020.0.4'
}
}
dependencies {
compile 'org.springframework.cloud:spring-cloud-starter-config'
compile 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
//...
}