领先一步
VMware 提供培训和认证,助您加速发展。
了解更多我代表社区很高兴地宣布,Spring Cloud 2020.0 发布序列的 Service Release 3 (2020.0.3) 今天发布了。该版本可在 Maven Central 中找到。您可以查看 2020.0 的发布说明以获取更多信息。
此版本中最大的变化是支持 Spring Boot 2.5。除此之外,此版本主要用于错误修复和依赖项升级。
在Github 项目中查看所有包含的问题和拉取请求。
spring.config.import
相关的错误spring.config.import
在远程和本地配置中与 profile 相关的行为问题 (#706)DiscoveryClient
现在默认使用当前命名空间 (#678)connectTimeout
和 readTimeout
的支持 (#468)以下模块作为 2020.0.3 的一部分进行了更新
模块 | 版本 | 问题 |
---|---|---|
Spring Cloud Bus | 3.0.3 | |
Spring Cloud Circuitbreaker | 2.0.2 | |
Spring Cloud Cli | 3.0.3 | |
Spring Cloud Cloudfoundry | 3.0.2 | |
Spring Cloud Commons | 3.0.3 | 问题 |
Spring Cloud Config | 3.0.4 | 问题 |
Spring Cloud Consul | 3.0.3 | 问题 |
Spring Cloud Contract | 3.0.3 | 问题 |
Spring Cloud Gateway | 3.0.3 | 问题 |
Spring Cloud Kubernetes | 2.0.3 | 问题 |
Spring Cloud Netflix | 3.0.3 | 问题 |
Spring Cloud Openfeign | 3.0.3 | 问题 |
Spring Cloud Sleuth | 3.0.3 | 问题 |
Spring Cloud Task | 2.3.2 | |
Spring Cloud Vault | 3.0.3 | |
Spring Cloud Zookeeper | 3.0.3 | 问题 |
一如既往,欢迎通过GitHub、Gitter、Stack Overflow 或 Twitter 提供反馈意见。
使用 Maven 和 BOM(仅依赖管理)入门
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>2020.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
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.3'
}
}
dependencies {
compile 'org.springframework.cloud:spring-cloud-starter-config'
compile 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
//...
}