On behalf of the community, I am pleased to announce that the Service Release 2 of the Spring Cloud 2021.0 Release Train is available today. This was primarily a bug fix release. The release can be found in Maven Central. You can check out the 2021.0.2 release notes for more information.
Notable Changes in the 2021.0.2 Release Train
See the project page for all issues included in the release.
Spring Cloud Commons
- Pass request data context in blocking LoadBalancer client (1090)
- Support custom HTTP status code in LoadBalancer lifecycle (1066)
- Support URI without port for default
ServiceInstance
([1054]https://github.com/spring-cloud/spring-cloud-commons/pull/1054)) - Improved calculating Round Robin LoadBalancer position ([1078]https://github.com/spring-cloud/spring-cloud-commons/pull/1078)/files)
Spring Cloud Sleuth
- Fix link in docs to Sleuth samples (2148)
- Relocate SleuthSpanContextSupplier (2147)
- Document access logs for Reactor Netty (2132)
- Fix Content-Type for Zipkin WebClientSender (2139, 2126)
- Fix Netty LEAK report for RSocket (2102)
- Stop wrapping AbstractPlatformTransactionManager implementations (2114)
- Add a logging message when BeanCreationException happens at creation of SkipPatternProvider (2136)
- Auto-configuration for Prometheus Exemplars (2143)
- Fix auto-configuration order for Rabbit, Kafka and Zipkin (2134)
- Fix the invalid blocking of threads with WebClient (2127)
- Fix invalid ThreadLocalSpan stacking and tracing context leaks (2064)
Spring Cloud Contract
- Bumped WireMock to 2.33.0 (1771)
Spring Cloud OpenFeign
- Provide and alternate naming convention for CircuitBreaker ids ([687]https://github.com/spring-cloud/spring-cloud-openfeign/pull/687))
Spring Cloud Netflix
- Reduce high load caused by
EurekaRenewedEvent
([4052]https://github.com/spring-cloud/spring-cloud-netflix/pull/4052))
Spring Cloud CircuitBreaker
- Allow default bulkhead strategy to be configured (119)
Spring Cloud Kubernetes
- Updated to Fabric8 5.10.2
The following modules were updated as part of 2021.0.2:
Module | Version | Issues |
---|---|---|
Spring Cloud Config | 3.1.2 | (issues) |
Spring Cloud Circuitbreaker | 2.1.2 | (issues) |
Spring Cloud Kubernetes | 2.1.2 | (issues) |
Spring Cloud Commons | 3.1.2 | (issues) |
Spring Cloud Sleuth | 3.1.2 | (issues) |
Spring Cloud Contract | 3.1.2 | (issues) |
Spring Cloud Task | 2.4.2 | (issues) |
Spring Cloud Gateway | 3.1.2 | (issues) |
Spring Cloud OpenFeign | 3.1.2 | (issues) |
Spring Cloud Starter Build | 2021.0.2 | |
Spring Cloud Netflix | 3.1.2 | (issues) |
Spring Cloud Function | 3.2.4 | |
Spring Cloud Stream | 3.2.3 |
As always, we welcome feedback on GitHub, on Gitter, on Stack Overflow, or on Twitter.
To get started with Maven with a BOM (dependency management only):
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>2021.0.2</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>
or with Gradle:
plugins {
id 'org.springframework.boot' version '2.6.7'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
}
repositories {
mavenCentral()
}
ext {
set('springCloudVersion', "2021.0.2")
}
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}"
}
}
转自 https://spring.io/blog/2022/04/26/spring-cloud-2021-0-2-has-been-released