http出站网关的拦截器

Interceptor for http outbound gateway

sprint 集成 http 出站网关是否有任何配置 属性 以将拦截器添加到 org.springframework.web.client.RestTemplate?

我想拦截 httpRequest 以在请求中添加一些安全信息(如 ws-ouboundgatewy 中的拦截器 属性),但是我在 http 出站网关中看不到任何拦截器配置选项?

我们还有其他选择来实现此功能吗?

您可以使用第一个 rest-template 属性向 <int-http:outbound-gateway> 任何自定义 RestTemplate bean 注入。

但从另一方面看,我没有在 RestTemplate...

中看到任何关于拦截器逻辑的提及