领先一步
VMware 提供培训和认证,助您加速进步。
了解更多我谨代表社区宣布,Spring Cloud 2021 发布列车的里程碑 3 (M3) 版本已于今日发布。您可以在 Spring Milestone 仓库中找到该版本。您可以查阅 2021 版本说明以获取更多信息。
Milestone 3 与 Spring Boot 2.6.0-M3 兼容。
查看项目页面,了解此版本中包含的所有问题和拉取请求。
初步文档可在此处获取。样本、更多文档和单独的博客文章即将推出。
为 Config Maps 和 Secrets 添加了一个 EnvironmentRepsitory,以支持使用 Spring Cloud Config Server 从 Kubernetes 资源提供配置数据。现在可以在 DockerHub 上获得包含此新 EnvrionmentRepository 实现的 Spring Cloud Config Server 镜像。使用此新功能的支持文档可在此处提供。 #881
添加了一个新的 Kubernetes DiscoveryClient 实现,该实现利用了新的 Kubernetes Discovery Sever。 #886
作为 2021.0.0-M3 的一部分,以下模块已更新
| 模块 | 版本 | 问题 |
|---|---|---|
| Spring Cloud Zookeeper | 3.1.0-M3 | |
| Spring Cloud CLI | 3.1.0-M3 | |
| Spring Cloud Consul | 3.1.0-M3 | |
| Spring Cloud Bus | 3.1.0-M3 | |
| Spring Cloud Gateway | 3.1.0-M3 | (issues) |
| Spring Cloud Starter Build | 2021.0.0-M3 | |
| Spring Cloud Vault | 3.1.0-M3 | |
| Spring Cloud Cloudfoundry | 3.1.0-M3 | |
| Spring Cloud Commons | 3.1.0-M3 | |
| Spring Cloud Openfeign | 3.1.0-M3 | |
| Spring Cloud Task | 2.4.0-M3 | (issues) |
| Spring Cloud Config | 3.1.0-M3 | |
| Spring Cloud Sleuth | 3.1.0-M3 | (issues) |
| Spring Cloud Netflix | 3.1.0-M3 | (issues) |
| Spring Cloud Kubernetes | 2.1.0-M3 | (issues) |
| Spring Cloud Circuitbreaker | 2.1.0-M3 | |
| Spring Cloud Contract | 3.1.0-M3 | (issues) |
一如既往,我们欢迎大家在 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>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'
...
}