Is there a way to limit the maximum number of processing records in a Job of Spring Batch?
问题 Is there a way to limit the maximum number of processing records in a job of Spring Batch? I need to have a configuration by which I could control the maximum number of records that can be processed by a job. The job is reading from Database using a Stored Procedure, I could limit the maximum number of fetched rows in the Procedure itself, but I am looking for any features provided in Spring Batch for that and I am not able to find it yet. 回答1: Write a custom ItemReader holds record count and