我代表社区高兴地宣布,Spring Cloud 2021发布列车的里程碑3(M3)今天已经推出。该版本可以在Spring Milestone仓库中找到。你可以查看2021年发布说明以了解更多信息。
2021年发布计划中值得注意的变化
Milestone 3与Spring Boot 2.6.0-M3兼容。
参见项目页面,了解该版本中包含的所有问题和拉动请求。
Spring Cloud Gateway
- 增加了对gRPC的初步支持#2388
春天云功能
- 除了各种增强和错误修复,Spring Cloud Function的这个里程碑引入了对gRPC的初步支持。
最初的文档在这里可以找到。样本、更多的文档和单独的博文也将陆续发布。
春天云保险库
- 从文件(~/.vault_token)中获取TOKEN授权 [#609](https://github.com/spring-cloud/spring-cloud-vault/issues/609)
春天云探索
- 增加了示例支持
春天云Kubernetes
-
为配置图和秘密添加了
EnvironmentRepsitory,以支持使用Spring Cloud Config Server从Kubernetes资源提供配置数据。包含这个新的EnvrionmentRepository实现的Spring Cloud Config Server的镜像现在可以在DockerHub上使用。这里提供了使用这个新功能的文档。#881 -
添加了一个新的Kubernetes
DiscoveryClient实现,它利用了新的Kubernetes Discovery Sever。#886
以下模块作为2021.0.0-M3的一部分进行了更新。
| 模块 | 版本 | 问题 |
|---|---|---|
| Spring Cloud Zookeeper | 3.1.0-M3 | |
| 春天云Cli | 3.1.0-M3 | |
| 春天的天空 | 3.1.0-M3 | |
| 春天云总线 | 3.1.0-M3 | |
| 春天云网关 | 3.1.0-M3 | (问题) |
| Spring Cloud Starter Build | 2021.0.0-M3 | |
| Spring Cloud Vault | 3.1.0-M3 | |
| 春天的云库 | 3.1.0-M3 | |
| 春天云公社 | 3.1.0-M3 | |
| 春天云Openfeign | 3.1.0-M3 | |
| 春天云任务 | 2.4.0-M3 | (问题) |
| Spring Cloud配置 | 3.1.0-M3 | |
| Spring Cloud Sleuth | 3.1.0-M3 | (问题) |
| Spring Cloud Netflix | 3.1.0-M3 | (问题) |
| Spring Cloud Kubernetes | 2.1.0-M3 | (问题) |
| 春天云断路者 | 2.1.0-M3 | |
| 弹簧云合同 | 3.1.0-M3 | (问题) |
一如既往,我们欢迎在GitHub、Gitter、Stack Overflow或Twitter上提出反馈。
要开始使用带有BOM的Maven(仅依赖性管理)。
<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>2021.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.2.RELEASE"
}
}
repositories {
maven {
url 'https://repo.spring.io/milestone'
}
}
apply plugin: "io.spring.dependency-management"
dependencyManagement {
imports {
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:2021.0.0-M3'
}
}
dependencies {
compile 'org.springframework.cloud:spring-cloud-starter-config'
compile 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
...
}