spring-cloud/spring-cloud-gateway

Add @Order annotation to gatewayRestClientCustomizer Bean

开放

#3,626 创建于 2024年12月5日

 (3 条评论) (0 个反应) (0 位负责人)Java (3,204 个派生)batch import
enhancementhelp wanted

仓库指标

星标
 (4,284 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南