I am reading the csv file and inserting data to database using spring batch(read,process and write).I am using \"jpaRepository.save\" in itemWriter class to save the data into t
Try that in your BatchConf:
@Bean @StepScope public StepExecutionListener stepExecutionListener() { return new StepExecutionListener(); }
... .skipLimit(1) .listener(stepExecutionListener() .build();