领先一步
VMware 提供培训和认证,助您加速进步。
了解更多我代表社区高兴地宣布,代号Jubilee的Spring Cloud 2021.0发布火车候选版本1(RC1)今天已可用。该版本可在Spring Milestone存储库中找到。您可以查看2021.0的发布说明以获取更多信息。
RC1与Spring Boot 2.6.0-RC1兼容
有关此版本中包含的所有问题和拉取请求,请参见项目页面。
spring.cloud.kubernetes.enabled=false 时禁用 Discovery 的支持。(问题)以下模块已作为 2021.0.0-RC1 的一部分进行了更新
| 模块 | 版本 | 问题 |
|---|---|---|
| Spring Cloud Vault | 3.1.0-RC1 | |
| Spring Cloud Bus | 3.1.0-RC1 | |
| Spring Cloud CLI | 3.1.0-RC1 | |
| Spring Cloud Zookeeper | 3.1.0-RC1 | |
| Spring Cloud Circuitbreaker | 2.1.0-RC1 | |
| Spring Cloud Commons | 3.1.0-RC1 | (问题) |
| Spring Cloud Kubernetes | 2.1.0-RC1 | (问题) |
| Spring Cloud Openfeign | 3.1.0-RC1 | (问题) |
| Spring Cloud Task | 2.4.0-RC1 | (问题) |
| Spring Cloud Sleuth | 3.1.0-RC1 | (问题) |
| Spring Cloud Contract | 3.1.0-RC1 | (问题) |
| Spring Cloud Consul | 3.1.0-RC1 | |
| Spring Cloud Gateway | 3.1.0-RC1 | (问题) |
| Spring Cloud Config | 3.1.0-RC1 | (问题) |
| Spring Cloud Cloudfoundry | 3.1.0-RC1 | |
| Spring Cloud Starter Build | 2021.0.0-RC1 | |
| Spring Cloud Netflix | 3.1.0-RC1 |
一如既往,我们欢迎大家在 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-RC1</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
plugins {
id 'org.springframework.boot' version '2.6.0-RC1'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
repositories {
mavenCentral()
maven { url 'https://repo.spring.io/milestone' }
}
ext {
set('springCloudVersion', "2021.0.0-RC1")
}
dependencies {
implementation 'org.springframework.cloud:spring-cloud-starter-config'
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}