spring-cloud/spring-cloud-gateway

Add @Order annotation to gatewayRestClientCustomizer Bean

Open

Aperta il 5 dic 2024

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)Java (4284 star) (3204 fork)batch import
enhancementhelp wanted

Descrizione

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.

Guida contributor