Spring Cloud 2021.0.1 is released, the first bugfix release of Spring Cloud 2021.

Support for 2021.0.0 Smooth Upgrade

is now available from the central repository at the following coordinates.

maven:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-dependencies</artifactId>
            <version>2021.0.1</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:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
plugins {
  id 'org.springframework.boot' version '2.6.3'
  id 'io.spring.dependency-management' version '1.0.11.RELEASE'
  id 'java'
}

repositories {
  mavenCentral()
}

ext {
  set('springCloudVersion', "2021.0.1")
}

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}"
  }
}

Update Log

Spring Cloud Config

  • Fix pattern matching bug with JSON, YAML, and properties files (2020)

Spring Cloud Sleuth

Spring Cloud Contract

Spring Cloud Gateway

  • A new route predicate that checks for allowed values for the X-Forwarded-For header, similar to the RemoteAddr predicate. (783)
  • Allows setting of the order of the Gateway HandlerMapping . By default, the Gateway HandlerMapping has precedence, but it can be changed if require. (2469)

Spring Cloud Openfeign

  • Feign upgraded to 11.8 (664)
  • Added possibility to configure readTimeout for OkHttpClient (665
  • Improved FeignAutoconfiguration so that OAuth2FeignRequestInterceptor can contain AccessTokenProvider with load balanced interceptor (631)

For all issues included in the release, see the Project page.

Dependency Upgrade

The following modules were updated as part of 2021.0.1:

Module Version Issues
Spring Cloud Config 3.1.1 (issues)
Spring Cloud Zookeeper 3.1.1
Spring Cloud Circuitbreaker 2.1.1 (issues)
Spring Cloud Kubernetes 2.1.1 (issues)
Spring Cloud Commons 3.1.1 (issues)
Spring Cloud Sleuth 3.1.1 (issues)
Spring Cloud Contract 3.1.1 (issues)
Spring Cloud Task 2.4.1 (Issues)
Spring Cloud Gateway 3.1.1 (issues)
Spring Cloud Openfeign 3.1.1 (issues)
Spring Cloud Starter Build 2021.0.1
Spring Cloud Netflix 3.1.1 (issues)

Reference https://spring.io/blog/2022/02/18/spring-cloud-2021-0-1-has-been-released