Spring Batch 中对读取 zip 下的多个文件的任何支持
我正在寻找根据位置从多个文件加载人员记录。 Spring批处理是否有任何简单的支持来加载多个名为location weise的文件? Easy Country_people.zip -> Location1(文件夹1)包含3个文本文件(people_education.txt、people_address.txt、people_invenue.txt)
-> Location2 (folder2) containing 3 text files(people_education.txt, people_address.txt, people_income.txt)
-> Location3 (folder3) containing 3 text files(people_education.txt, people_address.txt, people_income.txt)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试使用
Partitioner
从多个文件中获取数据https://docs.spring.io/spring-batch/docs/current/reference/html/scalability.html#partitioning
或 https://docs.spring.io/spring-framework/docs/4.0.0.RELEASE/javadoc-api/org/springframework/core/io/support/PathMatchingResourcePatternResolver.html
https://docs.spring.io/spring-batch/docs/current/api/org/springframework/batch/item/file/MultiResourceItemReader.html
You can try using
Partitioner
to get the data from multiple fileshttps://docs.spring.io/spring-batch/docs/current/reference/html/scalability.html#partitioning
Or https://docs.spring.io/spring-framework/docs/4.0.0.RELEASE/javadoc-api/org/springframework/core/io/support/PathMatchingResourcePatternResolver.html
https://docs.spring.io/spring-batch/docs/current/api/org/springframework/batch/item/file/MultiResourceItemReader.html