According to spring batch documents , they do not recommend using MuliResourceItemReader due to a reboot problem and recommend using one file in each folder.
βIt should be noted that, as with any ItemReader, adding extra input (in this case a file) can cause potential problems during restart. It is recommended that batch jobs work with their own directories until they are successful completed. "
If I have a folder with the following structure dest / < timestamp> /file1.txt, file2.txt
How to configure FlatFileItemReader to read a template file for each folder in the path.
source
share