Class BatchAutoConfiguration

java.lang.Object
org.springframework.boot.autoconfigure.batch.BatchAutoConfiguration

@AutoConfiguration(after=HibernateJpaAutoConfiguration.class) @ConditionalOnClass({org.springframework.batch.core.launch.JobLauncher.class,javax.sql.DataSource.class}) @ConditionalOnBean({javax.sql.DataSource.class,org.springframework.batch.core.launch.JobLauncher.class}) @EnableConfigurationProperties(BatchProperties.class) @Import({org.springframework.boot.autoconfigure.batch.BatchConfigurerConfiguration.class,DatabaseInitializationDependencyConfigurer.class}) public class BatchAutoConfiguration extends Object
Auto-configuration for Spring Batch. If a single job is found in the context, it will be executed on startup.

Disable this behavior with spring.batch.job.enabled=false).

If multiple jobs are found, a job name to execute on startup can be supplied by the User with : spring.batch.job.name=job1. In this case the Runner will first find jobs registered as Beans, then those in the existing JobRegistry.

Since:
1.0.0
Author:
Dave Syer, EddĂș MelĂ©ndez, Kazuki Shimizu, Mahmoud Ben Hassine