What’s New in Spring Cloud 2022.0.4? Key Updates and Migration Tips
Spring Cloud 2022.0.4 has been released on Maven Central, built on Spring Boot 3.0.9, and introduces major changes such as discontinued CLI and Cloudfoundry support, migration of Sleuth to Micrometer Tracing, numerous OpenFeign and Netflix updates, plus a full list of updated modules and their versions.
Spring Cloud 2022.0.4 release is now available on Maven Central, built on Spring Boot 3.0.9. See the version notes for details.
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>2022.0.4</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>Important changes in the 2022.0.4 Release Train
This version is based on Spring Boot 3.0.9.
Spring Cloud CLI
Maintenance stopped.
Spring Cloud Cloudfoundry
Maintenance stopped.
Spring Cloud Sleuth
Maintenance stopped. Core functionality moved to the Micrometer Tracing project; related tools are now part of Micrometer and individual projects.
Spring Cloud Commons
Added retry‑aware load‑balancing support for ServiceInstanceListSupplier delegate.
Removed AsyncRestTemplate in Spring Framework 6, disabling LoadBalancer auto‑configuration.
Migrated token relay to the new Spring Security OAuth2.
spring.config.use-legacy-processing=true no longer enabled; use spring.cloud.bootstrap.enabled=true instead.
Spring Cloud OpenFeign
LoadBalancer ResponseData now uses org.springframework.http.HttpStatusCode.
OAuth2 support moved to Spring Security OAuth2 client.
feign.autoconfiguration.jackson.enabled defaults to true.
decode404 property renamed to dismiss404 to align with upstream Feign changes.
Support for Apache HttpClient 4 removed; Apache HttpClient 5 is recommended.
spring.cloud.openfeign.metrics property prefix changed to spring.cloud.openfeign.micrometer.
OpenFeign property prefix changed from feign to spring.cloud.openfeign.
Spring Cloud Netflix
Unnecessary @EnableEurekaClient annotation removed.
Deprecated RestTemplateDiscoveryClientOptionalArgs constructor removed.
Default @FeignClient attribute resolution switched; to revert, set spring.cloud.openfeign.lazy-attributes-resolution=true.
Updated modules and their versions
Spring Cloud Zookeeper – 4.0.1
Spring Cloud Kubernetes – 3.0.4
Spring Cloud Function – 4.0.5
Spring Cloud Commons – 4.0.4
Spring Cloud CircuitBreaker – 3.0.3
Spring Cloud OpenFeign – 4.0.4
Spring Cloud Gateway – 4.0.7
Spring Cloud Stream – 4.0.4
Spring Cloud Consul – 4.0.3
Spring Cloud Build – 4.0.5
Spring Cloud Config – 4.0.4
Spring Cloud Contract – 4.0.4
Spring Cloud Starter Build – 2022.0.4
Spring Cloud Netflix – 4.0.3
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Programmer DD
A tinkering programmer and author of "Spring Cloud Microservices in Action"
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
