Spring Cloud Hoxton.SR12已发布

2801

Spring 官方社区宣布,Spring Cloud Hoxton发布序列的服务版本12(SR12)今天已经发布。该版本可以在Maven中心找到。你可以查看Hoxton发布说明,了解更多信息

Hoxton发布序列中值得注意的变化

在此查看该版本中包含的所有问题。

这主要是一个错误修复和文档发布。Hoxton.SR12与Spring Boot 2.3.x和2.2.x兼容。

注意:这将是Hoxton Release Train的最后一次定期发布。它现在进入了一个特殊的维护期,用于安全修复和关键错误,直到2022年2月底(这与Spring Boot 2.3.x的生命周期相同)。

Spring Cloud Commons

  • 添加了TaskSchedulerWrapper (#974)

Spring Cloud Gateway

  • 启用了禁用GatewayRedisAutoConfiguration (#2052)
  • 使得路由的URI的方案应该不区分大小写(#2207)

Spring Cloud OpenFeign

  • 改进了对SpringFormEncoder 的支持(#549)

Spring Cloud Netflix

  • TraceProxyRequestHelper 增加了对特殊字符的支持(#3873)
  • 修正了在eureka.client.healthcheck.enabled= true 时将状态传播到注册表的问题(#1571)

Spring Cloud CircuitBreaker

  • 现在可以通过配置属性来配置Reactive Resilience4J CircuitBreakers(#107)。

作为Hoxton.SR12的一部分,以下模块已经更新。

模块版本问题
Spring Cloud Starter BuildHoxton.SR12
Spring Cloud Netflix2.2.9.RELEASE(问题)
Spring Cloud Openfeign2.2.9.RELEASE(问题)
Spring Cloud Gateway2.2.9.RELEASE(问题
Spring Cloud Commons2.2.9.RELEASE(问题)
Spring Cloud Contract2.2.8.RELEASE
Spring Cloud Kubernetes1.1.10.RELEASE(问题)
Spring Cloud CircuitBreaker1.0.6.RELEASE(问题)
Spring Cloud StreamHorsham.SR13

要开始使用带BOM的Maven(仅依赖性管理)。

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-dependencies</artifactId>
            <version>Hoxton.SR12</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.11.RELEASE"
  }
}

apply plugin: "io.spring.dependency-management"

dependencyManagement {
  imports {
    mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Hoxton.SR12'
  }
}

dependencies {
  compile 'org.springframework.cloud:spring-cloud-starter-config'
  compile 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
  //...
}

原文链接:spring.io/blog/2021/0…