0
我正在使用this和Spring论坛。如果远程目录设置为“foo”,但它不接受可以读取“foo”下任意数量的文件/文件夹的表达式(foo/*/*),则该过程可以工作。完全失去了!春季集成从动态多个目录中读取文件
@Bean
public FtpInboundFileSynchronizer ftpInboundFileSynchronizer() {
FtpInboundFileSynchronizer fileSynchronizer = new FtpInboundFileSynchronizer(ftpSessionFactory());
fileSynchronizer.setDeleteRemoteFiles(false);
fileSynchronizer.setRemoteDirectoryExpression(new LiteralExpression("foo/*/*"));
fileSynchronizer.setFilter(new FtpSimplePatternFileListFilter("*.txt"));
return fileSynchronizer;
}
有没有可以提供的编程控制处理与弹簧(-boot)工作井(S)FTP操作的库。这个文档很大,对于像我这样的新的蜜蜂来说,我很快就没有办法了。
一些帮助非常感谢!
Thanks @Gary Russell。 – Divs
有一个例子[这里](http://stackoverflow.com/questions/42528316/how-polling-works-for-ftp-inbound-channel-adapter-considering-max-message-per-po/42535069#42535069) 。 –