spring-cloud/spring-cloud-gateway

Add @Order annotation to gatewayRestClientCustomizer Bean

オープン

#3,626 opened on 2024/12/05

 (3 件のコメント) (0 件のリアクション) (0 人の担当者)Java (3,204 件のフォーク)batch import
enhancementhelp wanted

Repository metrics

Stars
 (4,284 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド