取得领先
VMware 提供培训和认证,助您加速进步。
了解更多我代表社区高兴地宣布,Spring Cloud 2021 Release Train 的里程碑版本 1 (M1) 今天发布了。该版本可在 Spring Milestone 仓库中找到。您可以查看 2021 年发布说明了解更多信息。
此版本兼容 Spring Boot 2.6.0-M1。
此版本的 GitHub 项目可在此处找到。
1
,而不是 0
#2033CacheRequestBodyFilter
#1943TaskJobLauncherCommandLineRunner
,转而使用 TaskJobLauncherApplicationRunner
。以下模块作为 2021.0.0-M1 的一部分进行了更新
模块 | 版本 | 问题 |
---|---|---|
Spring Cloud Consul | 3.1.0-M1 | (问题) |
Spring Cloud Gateway | 3.1.0-M1 | (问题) |
Spring Cloud Zookeeper | 3.1.0-M1 | |
Spring Cloud Sleuth | 3.1.0-M1 | (问题) |
Spring Cloud Cli | 3.1.0-M1 | |
Spring Cloud Starter Build | 2021.0.0-M1 | |
Spring Cloud Bus | 3.1.0-M1 | |
Spring Cloud Vault | 3.1.0-M1 | |
Spring Cloud Commons | 3.1.0-M1 | |
Spring Cloud Openfeign | 3.1.0-M1 | (问题) |
Spring Cloud Kubernetes | 2.1.0-M1 | (问题) |
Spring Cloud Task | 2.4.0-M1 | |
Spring Cloud Config | 3.1.0-M1 | (问题) |
Spring Cloud Netflix | 3.1.0-M1 | |
Spring Cloud Contract | 3.1.0-M1 | |
Spring Cloud Cloudfoundry | 3.1.0-M1 | |
Spring Cloud Circuitbreaker | 2.1.0-M1 |
和往常一样,我们欢迎在 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-M1</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-M1'
}
}
dependencies {
compile 'org.springframework.cloud:spring-cloud-starter-config'
compile 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
...
}