我需要将sftp、、不同的文件放到服务器上。
在传递范围内的文件驻留在服务器中。
为此,我考虑使用Spring集成适配器,因为我不仅必须交付文件,而且还需要为每次文件传递向数据库写入元数据信息。
您知道如何使用集成将windows文件上的sftp多个文件共享给其他服务器吗?
发布于 2017-09-23 11:52:58
标准的FileReadingMessageSource确实请求功能:https://docs.spring.io/spring-integration/docs/4.3.12.RELEASE/reference/html/files.html#file-reading。
在那里,您可以使用共享的Windows来提取文件,然后将消息发送到SftpMessageHandler:https://docs.spring.io/spring-integration/docs/4.3.12.RELEASE/reference/html/sftp.html#sftp-outbound。
但是,由于我们在中处理消息通道,所以很容易将消息发送到其他地方,例如到JDBC。
https://stackoverflow.com/questions/46377347
复制相似问题