抢先一步
VMware 提供培训和认证,助您加速进步。
了解更多我谨代表社区高兴地宣布,Spring Cloud 2020.0 发布序列(代号 Ilford
)的里程碑 3 (M3) 版本今天已发布。该版本可在 Spring Milestone 仓库中找到。您可以查看 2020.0 发行说明了解更多信息。
此版本需要 Spring Boot 2.4.0-M1。
在 Github 项目中查看所有包含的问题和拉取请求。
在 Consul Bus 中增加了对非 String 负载类型的支持。
JDBC Environment Repository 现在可以通过一个属性禁用。
除了少量增强和错误修复外,此版本还包含对 RSocket 集成的初步支持。稍后将发布一篇独立的博客文章。
Spring Cloud Loadbalancer 生命周期已 完成。这允许用户以类型安全的方式轻松响应负载均衡器生命周期事件。
增加了对 OpenFeign Collection Format 的支持 问题
与 Spring Cloud Function 的更紧密集成,TestBinder 中新增了一些功能,允许您向命名目标发送和接收消息,显著提高了动态目标的性能,以及整个框架的众多增强和错误修复。
Spring Cloud Task 已将 JdbcCursorItemReader
和 JdbcItemWriter
添加到 Single-step Batch Jobs Starter 功能中。此功能允许用户仅通过属性配置单步 Spring Batch 作业。可以在此处找到有关如何使用此功能的示例。
以下模块已作为 2020.0.0-M3 的一部分进行了更新
| 模块 | 版本 | 问题 |--- |--- |--- |--- | Spring Cloud Bus | 3.0.0-M3 |
| Spring Cloud Circuitbreaker | 2.0.0-M3 |
| Spring Cloud Cloudfoundry | 3.0.0-M3 |
| Spring Cloud Commons | 3.0.0-M3 |
| Spring Cloud Config | 3.0.0-M3 | (问题) | Spring Cloud Consul | 3.0.0-M3 |
| Spring Cloud Contract | 3.0.0-M3 | (问题) | Spring Cloud Function | 3.1.0-M2 | | Spring Cloud Gateway | 3.0.0-M3 |
| Spring Cloud Kubernetes | 2.0.0-M3 |
| Spring Cloud Netflix | 3.0.0-M3 |
| Spring Cloud Openfeign | 3.0.0-M3 |
| Spring Cloud Security | 3.0.0-M3 |
| Spring Cloud Sleuth | 3.0.0-M3 |
| Spring Cloud Stream | 3.1.0-M2 | | Spring Cloud Task | 2.3.0-M2 | | Spring Cloud Vault | 3.0.0-M3 |
| Spring Cloud Zookeeper | 3.0.0-M3 |
一如既往,我们欢迎在 GitHub、Gitter、Stack Overflow 或 Twitter 上提供反馈。
使用 Maven 和 BOM (仅依赖管理) 开始
<repositories>
<repository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/milestone</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>2020.0.0-M3</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.9.RELEASE"
}
}
repositories {
maven {
url 'https://repo.spring.io/milestone'
}
}
apply plugin: "io.spring.dependency-management"
dependencyManagement {
imports {
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:2020.0.0-M3'
}
}
dependencies {
compile 'org.springframework.cloud:spring-cloud-starter-config'
compile 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
//...
}