gpt4 book ai didi

spring-integration - Spring 集成 : "no output-channel or replyChannel header available"

转载 作者:行者123 更新时间:2023-12-05 01:29:38 25 4
gpt4 key购买 nike

我正在使用以下 SI 流程:

<integration:gateway id="notificationGateway"
default-request-channel="start"
default-reply-channel="end"
service-interface="com.supplier.NotificationGateway"/>
<integration:channel id="start"/>
<integration:service-activator id="securedFileTransfer"
input-channel="start"
ref="Submitter"
method="submit"
output-channel="end"/>
<integration:publish-subscribe-channel id="end"/>

得到以下错误:
no output-channel or replyChannel header available?borg.springframework.integration.support.channel.ChannelResolutionException: no output-channel or replyChannel header available

有任何想法吗?

最佳答案

谢谢 这篇文章对我帮助很大。
Bellow 是我用来从以前的 channel 消息创建消息头的代码,到新创建的带有有效负载 myPayload 的消息

createSlotGateway.send(MessageBuilder.withPayload(myPayload).copyHeaders(messagePrev.getHeaders()).build());

关于spring-integration - Spring 集成 : "no output-channel or replyChannel header available",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10086396/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com