How to run Spring batch job with different parameters?
问题 I'm using spring batch with custom reader and writer. I have a control table with customerId's . I need to run the same Step multiple times, once for each customer in my control table. The customerId should be able to pass as a parameter since I need it in the reader as well as in the writer. How can this best be achieved? @Bean public Step shipmentFactsStep() { return stepBuilderFactory.get("shipmentFactsStep") .<Shipmentfacts, Shipmentfacts>chunk(10000) .reader(shipmentfactsItemReader())