Skip to content

Spring Batch Launch

stella edited this page Jun 19, 2014 · 1 revision
	JobLauncher jobLauncher = context.getBean(JobLauncher.class);
	Job job = context.getBean(Job.class);
	jobLauncher.run(
	job,
	new JobParametersBuilder()
	.addString("inputFile", "file:./products.txt")
	.addDate("date", new Date())
	.toJobParameters()
	);

Clone this wiki locally