在 Spring 集成 http 出站网关中记录 http 请求
Logging http request in Spring integration http outbound gateway
有没有办法(例如拦截器)记录通过 Spring 集成 http 出站网关发送的请求?
是;将 ClientHttpRequestInterceptor
实现注入出站网关使用的 RestTemplate
。
使用 rest-template
属性在网关中注入模板。
有没有办法(例如拦截器)记录通过 Spring 集成 http 出站网关发送的请求?
是;将 ClientHttpRequestInterceptor
实现注入出站网关使用的 RestTemplate
。
使用 rest-template
属性在网关中注入模板。