快人一步
VMware 提供培训和认证,助您加速进步。
了解更多我很高兴代表社区宣布,Spring Cloud Greenwich Release Train 的里程碑版本 3 (M3) 今天已发布。该版本可在 Spring Milestone 仓库中找到。您可以查看 Greenwich 版本说明以获取更多信息。
该里程碑版本与 Spring Boot 2.1.0.RELEASE 兼容。已进行了 Java 11 兼容性更改。请参阅 Github 项目了解更多信息。
修复了与 Spring Cloud Stream 的兼容性问题。
将 instanceId
添加到 ServiceInstance
接口。还添加了使用 Reactor 实现的 ReactiveLoadBalancer
接口和实现。
各种 bug 修复和小型增强功能。
添加了对 WebTestClient
和 JUnit 5 扩展的支持。
Bug 修复。
次要增强功能和 bug 修复。
添加了重写响应头过滤器和 bug 修复。
次要增强功能和 bug 修复。
ServiceInstance
元数据现在可以配置为来自 Kubernetes Labels、Annotations 和 Ports。还有一些其他小型增强功能和 bug 修复。
各种版本升级。
添加了缺失的配置元数据。
对 Reactor 和 Reactor Netty 仪表化以及其他小型增强功能进行了各种改进。
次要增强功能和 bug 修复。
现在通过自动配置启用。
添加了对 Azure 和 GCP 身份验证的支持以及一些依赖项更新。
以下模块作为 Greenwich.M3 的一部分进行了更新
| 模块 | 版本 | 问题 |--- |--- |--- |--- | Spring Cloud | Greenwich.M3 | | Spring Cloud Aws | 2.0.1.RELEASE | (问题) | Spring Cloud Bus | 2.1.0.M2 | (问题) | Spring Cloud Cloudfoundry | 2.1.0.M1 | | Spring Cloud Commons | 2.1.0.M2 | (问题) | Spring Cloud Config | 2.1.0.M3 | (问题) | Spring Cloud Contract | 2.1.0.M2 | (问题) | Spring Cloud Consul | 2.1.0.M2 | (问题) | Spring Cloud Function | 2.0.0.RC2 | (问题) | Spring Cloud Gateway | 2.1.0.M3 | (问题) | Spring Cloud Gcp | 1.1.0.M3 | | Spring Cloud Kubernetes | 1.0.0.M2 | (问题) | Spring Cloud Netflix | 2.1.0.M3 | (问题) | Spring Cloud Openfeign | 2.1.0.M2 | | Spring Cloud Security | 2.1.0.M1 | | Spring Cloud Sleuth | 2.1.0.M2 | (问题) | Spring Cloud Stream | Fishtown.RC2 | 博客文章 | Spring Cloud Task | 2.1.0.M1 | (问题) | Spring Cloud Vault | 2.1.0.M2 | (问题) | Spring Cloud Zookeeper | 2.1.0.M1 |
一如既往,我们欢迎在 GitHub、Gitter、Stack Overflow 或 Twitter 上提供反馈。
使用 Maven BOM(仅依赖管理)入门
<repositories>
<repository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>http://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>Greenwich.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 'http://repo.spring.io/milestone'
}
}
apply plugin: "io.spring.dependency-management"
dependencyManagement {
imports {
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Greenwich.M3'
}
}
dependencies {
compile 'org.springframework.cloud:spring-cloud-starter-config'
compile 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
...
}