【发布时间】:2018-10-15 00:31:57
【问题描述】:
我在 spring 集成 dsl 中找不到向 outboundGateway 添加标头的功能。
.handle(outboundGateway("localhost:8080/search")
.httpMethod(HttpMethod.GET)
.expectedResponseType(Order.class))
我想添加到请求的标题是
HttpHeaders headers = new HttpHeaders();
headers.setAccept(newArrayList(APPLICATION_JSON));
headers.setContentType(APPLICATION_JSON);
headers.add("Client-Id", "test");
有人可以帮我吗
【问题讨论】:
标签: spring-integration spring-integration-dsl