How to move files to archive and error folders after processing
问题 Job runs once and try to process all the files available in a source folder in a step. Further it need to do removal of processed/tried but failed files from the source folder to another subsequent folders (/_archived, /_faild). What is the best way to move successfully processed files in archive folder and unsuccessfull files in error folder categorically using spring batch. 回答1: you can add separate tasklet or use JobExecutionListener.afterJob hook to move files. Below is sample example for