在春季集成流中获取动态文件
如何在弹簧集成流中配置动态文件名?
方案:在FTP上,每天文件都会生成当前日期。通过SFTP,需要读取当前日期文件。 示例: *_20220525_data.txt, *_20220526_data.txt
How to configure the dynamic file name in Spring Integration flow?
Scenario: On FTP, every day file get generated for current date. Through the SFTP, need to read current date file.
Example: *_20220525_DATA.TXT, *_20220526_DATA.TXT
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为什么只是
datternfilter(“*_ data.txt”)
对您不起作用?sftpsimplepatternfilelistfilter
无法修改其模式。尽管您可以实现自定义
filelistfilter
以每天更改其模式。Why just
patternFilter("*_DATA.TXT")
doesn't work for you?The
SftpSimplePatternFileListFilter
cannot be modified for its pattern.Although you can implement a custom
FileListFilter
to have its patterns to be changed every day.