1.

How Do I Setup Spring Batch Job Without Using Xml?

Answer»

Spring 3 enables the ABILITY to configure applications using JAVA INSTEAD of XML and from Spring Batch 2.2.0, batch jobs can be configured using the same java config.

There are 2 components for the java based configuration:

the @EnableBatchConfiguration annotation and two builders.

@EnableBatchProcessing provides a base configuration for building batch jobs.

The CORE interface for this configuration is the BatchConfigurer. The default implementation provides the beans to be autowired such as JobRepository, JobLauncher.

Spring 3 enables the ability to configure applications using java instead of XML and from Spring Batch 2.2.0, batch jobs can be configured using the same java config.

There are 2 components for the java based configuration:

the @EnableBatchConfiguration annotation and two builders.

@EnableBatchProcessing provides a base configuration for building batch jobs.

The core interface for this configuration is the BatchConfigurer. The default implementation provides the beans to be autowired such as JobRepository, JobLauncher.



Discussion

No Comment Found