spring-cloud/spring-cloud-gateway

Add @Order annotation to gatewayRestClientCustomizer Bean

Offen

#3.626 geöffnet am 05.12.2024

 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Java (3.204 Forks)batch import
enhancementhelp wanted

Repository-Metriken

Stars
 (4.284 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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.

Contributor Guide