领先一步
VMware 提供培训和认证,助您加速进步。
了解更多我很高兴地代表社区宣布,Spring Cloud 2020.0 Release Train(代号为 Ilford)的 Milestone 3 (M3) 今日发布。您可以在 Spring Milestone 仓库中找到该版本。有关更多信息,您可以查阅 2020.0 的 发布说明。
此版本需要 Spring Boot 2.4.0-M1。
您可以在 Github 项目 中查看所有包含的 issue 和 pull request。
为 Consul Bus 添加了对非 String payload 类型的支持。
现在可以通过属性禁用 JDBC Environment Repository。
除了少数增强功能和 bug 修复之外,此版本还包含了对 RSocket 集成的初步支持。稍后将发布一篇单独的博客文章。
Spring Cloud Loadbalancer 的生命周期已完成。这允许用户以类型安全的方式轻松响应 Load Balancer 生命周期事件。
添加了对 OpenFeign Collection Format 的支持 issue
与 Spring Cloud Function 更紧密的集成,TestBinder 中新增了一些功能,允许您向/从命名目标发送/接收消息,动态目标的性能显著提高,以及框架中大量的增强功能和 bug 修复。
Spring Cloud Task 为 Single-step Batch Jobs 功能添加了 JdbcCursorItemReader 和 JdbcItemWriter。此功能允许用户仅通过属性配置单步 Spring Batch 作业。有关如何使用此功能的示例,请参见 此处。
以下模块已在 2020.0.0-M3 中更新
| Module | Version | Issues |--- |--- |--- |--- | 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 | (issues) | Spring Cloud Consul | 3.0.0-M3 |
| Spring Cloud Contract | 3.0.0-M3 | (issues) | 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'
//...
}