spring-cloud/spring-cloud-gateway

Add @Order annotation to gatewayRestClientCustomizer Bean

Ouverte

#3 626 ouverte le 5 déc. 2024

 (3 commentaires) (0 réaction) (0 personne assignée)Java (3 204 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (4 284 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

Could an @Order annotation be added to the gatewayRestClientCustomizer bean? This would give users the ability to add a custom RestClientCustomizer that overrides the requestFactory if needed. I know the ClientHttpRequestFactory bean can be defined, but there could be certain scenarios where the user may have a RestClientCustomizer from a library that sets the requestFactory. Example, a RestClientCustomizer that configures a proxy.

Guide contributeur