Spring Cloud Hoxton 版本发布

发布 | Ryan Baxter | 2019年11月28日 | ...

我很高兴代表社区宣布,Spring Cloud Hoxton 发布列车的通用版本 (RELEASE) 于今日发布。该版本可在 Maven Central 中找到。您可以查看 Hoxton 发行说明以获取更多信息

Hoxton 发布列车中的显著变化

Spring Cloud Hoxton.RELEASE 基于 Spring Boot 2.2.1.RELEASE。

文档变更

Hoxton.RELEASE 文档有一个新的着陆页,新的主题,以及单页、多页和 PDF 版本。着陆页将链接到您感兴趣的特定项目的文档。我们希望您会发现新的文档结构更易于使用。

新的负载均衡器实现

Spring Cloud Hoxton.RELEASE 是第一个包含阻塞和非阻塞负载均衡器客户端实现的版本,作为已进入维护模式的 Netflix Ribbon 的替代方案。

要将新的 BlockingLoadBalancerClientRestTemplate 一起使用,您需要在应用程序的 classpath 中包含 org.springframework.cloud:spring-cloud-loadbalancer。在使用 @LoadBalanced WebClient.Builder 的响应式应用程序中可以使用相同的依赖项 - 唯一的区别是 Spring Cloud 将自动配置一个 ReactorLoadBalancerExchangeFilterFunction 实例。有关更多信息,请参阅文档。新的 ReactorLoadBalancerExchangeFilterFunction 也可以自动装配并直接传递给 WebClient.Builder(请参阅文档)。所有这些功能底层都使用了基于 Project ReactorRoundRobinLoadBalancer

Spring Cloud Netflix

  • 增加了对新的 ReactiveDiscoveryClient 和 Hystrix 的新的 Spring Cloud 断路器 API 实现的支持。
  • 添加了属性来禁用 Spring Cloud CircuitBreaker Hystrix 自动配置

Spring Cloud Cloudfoundry

  • 增加了对新的 ReactiveDiscoveryClient 的支持。

Spring Cloud Bus

  • 文档更新

Spring Cloud Vault

  • 在 Pivotal Application Service(以前称为 PCF)中运行的应用程序可以利用容器身份使用 Vault 的 PCF 认证支持进行认证。
  • 使用 X-Vault-Namespace 头支持 Vault 命名空间(Vault Enterprise 功能)。

Spring Cloud Kubernetes

  • 增加了对新的 ReactiveDiscoveryClient 的支持。

Spring Cloud Contract

  • 完整文档重写
  • 主要测试类生成重构
  • 大量从 Groovy 重写到 Java
  • 增加了对使用 Kotlin 和 Java 编写契约的支持
  • 在契约 DSL 和运行时 stub 生成中添加了 inProgress 标志
  • 增加了对生成测试的 TestNG 支持
  • 大量库版本升级(包括 Groovy、WireMock 和 Pact)

Spring Cloud Consul

  • 增加了对新的 ReactiveDiscoveryClient 和 Consul 的一致性模式的支持。

Spring Cloud Config

Spring Cloud Gcp

  • 增加了 BigQuery 模块
  • 为 Cloud Foundry 创建了单独的启动器:spring-cloud-gcp-starter-cloudfoundry
  • 您可以查看变更日志文档获取更多信息

Spring Cloud Stream

随着新的 Horsham.RELEASE (3.0.0) 版本发布,我们开始了从注解驱动到显著简化的函数式方法的旅程。我们发布了一系列文章解释和论证这一转变

Spring Cloud Commons

  • 我们引入了新的阻塞和非阻塞负载均衡器实现,作为已进入维护模式的 Netflix Ribbon 的替代方案。

Spring Cloud Openfeign

Spring Cloud Task

  • Micrometer 支持
  • 文档更新,格式改进
  • 在使用 Spring Batch 分区时启动的任务应用程序现在填充了 external-execution-id

Spring Cloud Sleuth

  • 增加了对最新 Brave 的支持(包括消息采样)
  • 增加了 onLastOperator Reactor 跟踪选项,以提高性能
  • 增加了 Redis 跟踪
  • 默认采样器设置为限速采样器
  • 增加了对 AWS SQS 跟踪的支持
  • 增加了对 Quartz 跟踪的支持
  • 增加了进程内传播机制
  • Zipkin 报告默认使用 Micrometer 指标

Spring Cloud Aws

  • 错误修复

Spring Cloud Zookeeper

  • 增加了对新的 ReactiveDiscoveryClient 的支持。

Spring Cloud Security

  • 错误修复

Spring Cloud Circuitbreaker

我们欢迎 Spring Cloud Circuit Breaker 作为 Spring Cloud 发布列车下的新项目。该项目提供了一个抽象 API,用于向您的应用程序添加断路器。截至本博文发布时,支持以下四种实现

更多信息请参阅发布博文

Spring Cloud Function

许多新功能,例如

  • 透明类型转换
  • 函数路由
  • 函数参数个数

更多详细信息请参阅我们的发布公告

Spring Cloud Gateway

  • 增加了使用新的 ReactiveLoadBalancer 的支持。
  • RSocket 模块已移至 Spring Cloud Incubator 组织下的独立项目
  • 增加了过滤器,该过滤器使用新的 Spring Cloud CircuitBreaker 库为路由提供断路器

以下模块已作为 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 | (问题)

一如既往,我们欢迎在 GitHubGitterStack OverflowTwitter 上提供反馈。

使用 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'
...
}

获取 Spring 邮件列表

订阅 Spring 邮件列表以保持联系

订阅

领先一步

VMware 提供培训和认证,助您加速进步。

了解更多

获取支持

Tanzu Spring 在一个简单订阅中提供 OpenJDK™、Spring 和 Apache Tomcat® 的支持和二进制文件。

了解更多

近期活动

查看 Spring 社区所有近期活动。

查看全部