Skip to content

Instantly share code, notes, and snippets.

@fmbenhassine
fmbenhassine / SpringBatchConfiguration.java
Last active January 26, 2021 02:07
Spring Batch helloworld java configuration #SpringBatch
package springbatch;
import common.Greeting;
import org.springframework.batch.core.Job;
import org.springframework.batch.core.Step;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.batch.core.configuration.annotation.JobBuilderFactory;
import org.springframework.batch.core.configuration.annotation.StepBuilderFactory;
import org.springframework.batch.core.launch.JobLauncher;
import org.springframework.batch.core.launch.support.SimpleJobLauncher;