Я использую поток интеграции для отправки запроса POST. Я хотел бы знать, как я могу указать тело запроса?
IntegrationFlow myFlow() {
return IntegrationFlows.from("requestChannel")
.handle(Http.outboundGateway(uri)
.httpMethod(HttpMethod.POST)
.expectedResponseType(String.class)
)
.handle("myAssembler", "myFonction")
.channel("responseChannel")
.get();
}