Spring Cloud 2022.0.0 is officially released, codenamed "Kilburn"

Spring Cloud 2022.0.0 has been officially released.

Get the address: https://repo1.maven.org/maven2/org/springframework/cloud/spring-cloud-dependencies/2022.0.0/

Spring Cloud provides tools for developers to quickly build some common patterns in distributed systems (for example: configuration management, service discovery, intelligent routing, micro-proxy, control bus, one-time tokens, global locks, distributed sessions , cluster status, etc.). The structure is as follows:

Spring Cloud 2022.0.0 is an important version based on Spring Framework 6.x and Spring Boot 3.x, compatible with Jakarta EE, and requires Java 17 as a minimum.

Since Spring now provides their own implementation of the interface HTTP client solution, as of 2022.0.0, Spring Cloud OpenFeign has reached feature complete status. This means that the Spring Cloud team will no longer add new features to this module, and the future will mainly be fixing bugs and security issues, and reviewing small PRs from the community.

Other modules containing important changes are as follows:

  • Spring Cloud Kubernetes

  • Spring Cloud Function

  • Spring Cloud Circuitbreaker

  • Spring Cloud Task

  • Spring Cloud Stream

  • Spring Cloud OpenFeign

  • Spring Cloud Commons

  • Spring Cloud Contract

  • Spring Cloud Netflix

  • Spring Cloud Consul

  • Spring Cloud Config

  • Spring Cloud Gateway

详情查看 Release Notes:https://github.com/spring-cloud/spring-cloud-release/wiki/Spring-Cloud-2022.0-Release-Notes

Roughly translate

break change


Spring Cloud CLI

This item has been removed from the release sequence.

Spring Cloud CloudfoundryCompany

This item has been removed from the release sequence.

Spring cloud public

AsyncRestTemplate was removed in Spring Framework 6, so the auto-configuration of LoadBalancer was removed.

Migrated to the new Spring Security OAuth 2 for Token Relay.

Due to changes in Spring Boot 3.0, spring.config.uselegacyprocessing=true no longer enables bootstrapping. Please use spring.cloud.bootstrap.enabled=true.

LoadBalancer ResponseData now uses org.springframework.http.HttpStatusCode.

Removed from ReactorLoadBalancerExchangeFilterFunction, RetryableLoadBalancerSexchangeFilterFunction, RetyLoadBalancer Interceptor, BlockingLoadBalancer-Client, HealthCheckServiceInstanceListSupplier, HintBasedServiceInstanceListSuppler, LoadBalancerServiceInstanceCookieTransformer, RequestBasedStickySes Remove deprecated constructors in sionServiceInstanceListProvider, LoadBalancesClientFactory. Users need to migrate to the newer constructors.

The way schemes are resolved for service instances has changed #1168. Users can now override the getScheme() method to provide their own implementation, and may be required to do so to maintain compatibility.

Removed @EnableCircuitBreaker as it is only used by Hystrix in Spring Cloud Netflix which is no longer supported

Removing the @SpringCloudApplication annotation @EnableDiscoveryClient and @EnableCircuitBreaker is no longer required.

Delete the classes and interfaces under org.springframework.commons.httpclient#1171

Spring Cloud Contract

Spring Cloud Detective

This item has been removed from the release sequence. The core of the project has been moved to the micrometer tracking project, the instruments will be moved to micrometer and all corresponding projects (no longer all instruments will be done in one repository).

Spring Cloud Kubernetes

In versions prior to 3.0.0-M1, Kubernetes awareness was implemented using the spring.cloud.kubenetes.enabled property. This property has been removed and is not supported. Instead, we use the Spring Boot API: ConditionalOnCloudPlatform. If you need to explicitly enable or disable this awareness, use spring.main.cloudplatform=NONE/KUBERNETES .

Spring Cloud OpenFeign

LoadBalancer ResponseData now uses org.springframework.http.HttpStatusCode.

OAuth2 support has been migrated to the SpringSecurityOAuth2 client.

feign.autoconfigion.jackson.enabled is now set to true by default.

To align with changes in the upstream Feign project, the decode404 attribute and decode404 section in the method signature have been changed to disease404.

Deprecated constructors and methods have been removed.

To be consistent with changes in the Spring Framework, support for Apache HttpClient 4 has been removed. Apache HttpClient 5 is the recommended replacement and has been supported for some time.

The spring.cloud.openfeign.metrics property prefix has been changed to spring.loud.openfegn.micrometer.

Spring Cloud Netflix

Removed unnecessary @EnableEurekaClient annotation

The deprecated RestTemplateDiscoveryClientOptionalArgs#RestTemplateDiscoveryClientOptionalArgs() constructor has been removed

Switch to default eager @FeignClient attribute resolution. If you want to return lazy attributes resolution (e.g. for tests with Spring Cloud Contract integration), set Spring.Cloud.openfeign.lazy-attributes-resolution to true.

Guess you like

Origin blog.csdn.net/zyqytsoft/article/details/128402221