[英]PipedOutput/InputStream upload to sftp using spring integration
[英]Spring Integration SFTP Upload non-XML Configuration
我一直在互聯網上搜尋使用注釋配置系統設置sftp出站網關的方法。 到目前為止,我已經空了。
那么,有什么方法可以借助Spring Annotations在Java代碼中配置以下XML?
<int-sftp:outbound-gateway id="gatewayLS"
session-factory="sftpSessionFactory"
request-channel="inbound"
command="ls"
command-options=""
expression="payload"
reply-channel="toSplitter"/>
在時間允許的情況下,我們一直在手冊中添加java config。
有關使用文件出站通道適配器的示例,請參見文件部分 。
對於SFTP, MessageHandler
是FileTransferringMessageHandler
需要使用會話工廠等進行配置。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.