领先一步
VMware 提供培训和认证,助您加速进步。
了解更多我很高兴代表社区宣布,Spring Cloud Hoxton 发布列车的通用版本 (RELEASE) 于今日发布。该版本可在 Maven Central 中找到。您可以查看 Hoxton 发行说明以获取更多信息。
Spring Cloud Hoxton.RELEASE 基于 Spring Boot 2.2.1.RELEASE。
Hoxton.RELEASE 文档有一个新的着陆页,新的主题,以及单页、多页和 PDF 版本。着陆页将链接到您感兴趣的特定项目的文档。我们希望您会发现新的文档结构更易于使用。
Spring Cloud Hoxton.RELEASE 是第一个包含阻塞和非阻塞负载均衡器客户端实现的版本,作为已进入维护模式的 Netflix Ribbon 的替代方案。
要将新的 BlockingLoadBalancerClient
与 RestTemplate
一起使用,您需要在应用程序的 classpath 中包含 org.springframework.cloud:spring-cloud-loadbalancer
。在使用 @LoadBalanced WebClient.Builder
的响应式应用程序中可以使用相同的依赖项 - 唯一的区别是 Spring Cloud 将自动配置一个 ReactorLoadBalancerExchangeFilterFunction
实例。有关更多信息,请参阅文档。新的 ReactorLoadBalancerExchangeFilterFunction
也可以自动装配并直接传递给 WebClient.Builder
(请参阅文档)。所有这些功能底层都使用了基于 Project Reactor 的 RoundRobinLoadBalancer
。
ReactiveDiscoveryClient
和 Hystrix 的新的 Spring Cloud 断路器 API 实现的支持。ReactiveDiscoveryClient
的支持。X-Vault-Namespace
头支持 Vault 命名空间(Vault Enterprise 功能)。ReactiveDiscoveryClient
的支持。inProgress
标志ReactiveDiscoveryClient
和 Consul 的一致性模式的支持。随着新的 Horsham.RELEASE (3.0.0) 版本发布,我们开始了从注解驱动到显著简化的函数式方法的旅程。我们发布了一系列文章解释和论证这一转变
onLastOperator
Reactor 跟踪选项,以提高性能ReactiveDiscoveryClient
的支持。我们欢迎 Spring Cloud Circuit Breaker 作为 Spring Cloud 发布列车下的新项目。该项目提供了一个抽象 API,用于向您的应用程序添加断路器。截至本博文发布时,支持以下四种实现
更多信息请参阅发布博文。
许多新功能,例如
更多详细信息请参阅我们的发布公告。
ReactiveLoadBalancer
的支持。以下模块已作为 Hoxton.RELEASE 的一部分进行了更新
| 模块 | 版本 | 问题 |--- |--- |--- |--- | Spring Cloud Netflix | 2.2.0.RELEASE |
| Spring Cloud Starter Parent | Hoxton.RELEASE |
| Spring Cloud Dependencies Parent | 2.2.0.RELEASE |
| Spring Cloud Dependencies | Hoxton.RELEASE |
| Spring Cloud Cloudfoundry | 2.2.0.RELEASE |
| Spring Cloud Cli | 2.2.0.RELEASE | (问题) | Spring Cloud Bus | 2.2.0.RELEASE |
| Spring Cloud Vault | 2.2.0.RELEASE | (问题) | Spring Cloud Kubernetes | 1.1.0.RELEASE |
| Spring Cloud Contract | 2.2.0.RELEASE | (问题) | Spring Cloud Consul | 2.2.0.RELEASE |
| Spring Cloud Release | Hoxton.RELEASE |
| Spring Cloud Build | 2.2.0.RELEASE | (问题) | Spring Cloud Config | 2.2.0.RELEASE |
| Spring Cloud | Hoxton.RELEASE |
| Spring Cloud Gcp | 1.2.0.RELEASE |
| Spring Cloud Stream | Horsham.RELEASE | (问题) | Spring Cloud Commons | 2.2.0.RELEASE | (问题) | Spring Cloud Starter | Hoxton.RELEASE |
| Spring Cloud Openfeign | 2.2.0.RELEASE |
| Spring Cloud Task | 2.2.1.RELEASE |
| Spring Cloud Sleuth | 2.2.0.RELEASE | (问题) | Spring Cloud Aws | 2.2.0.RELEASE |
| Spring Cloud Zookeeper | 2.2.0.RELEASE | (问题) | Spring Cloud Security | 2.2.0.RELEASE |
| Spring Cloud Circuitbreaker | 1.0.0.RELEASE | (问题) | Spring Cloud Function | 3.0.0.RELEASE | (问题) | Spring Cloud Gateway | 2.2.0.RELEASE | (问题)
一如既往,我们欢迎在 GitHub、Gitter、Stack Overflow 或 Twitter 上提供反馈。
使用 BOM (仅依赖管理) 通过 Maven 开始
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Hoxton.RELEASE</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"
}
}
apply plugin: "io.spring.dependency-management"
dependencyManagement {
imports {
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Hoxton.RELEASE'
}
}
dependencies {
compile 'org.springframework.cloud:spring-cloud-starter-config'
compile 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
...
}