【发布时间】:2018-09-27 05:22:25
【问题描述】:
我有 bean 定义
@Bean
public IntegrationFlow inbound() {
return IntegrationFlows.from(MessageChannels.queue("getSend1"))
.handle(Http.outboundGateway("http://localhost:8055/greeting").httpMethod(HttpMethod.GET)
.expectedResponseType(String.class))
.channel(MessageChannels.queue("getReceive1"))
.get();
}
和默认轮询器,我想从 URL 中获取 JSON。这是行不通的。服务http://localhost:8055/greeting根本没有被调用和日志消息
preReceive on channel 'getSend1'
postReceive on channel 'getSend1', message is null
Received no Message during the poll, returning 'false'
被打印出来了。
【问题讨论】:
标签: spring spring-integration spring-integration-dsl