@Configuration @ConditionalOnClass(value={,javax.sql.DataSource.class, }) @ConditionalOnBean(value= ) public class BatchAutoConfiguration extends Object
Auto-configuration
for Spring Batch. By default all
jobs in the context will be executed on startup (disable this behaviour with
spring.boot.exec.enabled=false
). User can supply a job name to execute on
startup with spring.batch.exec.name=...
.Modifier and Type | Class and Description |
---|---|
protected static class |
BatchAutoConfiguration.JpaBatchConfiguration |
Constructor and Description |
---|
BatchAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
BatchDatabaseInitializer |
batchDatabaseInitializer() |
ExitCodeGenerator |
jobExecutionExitCodeGenerator() |
JobExplorer |
jobExplorer(DataSource dataSource) |
JobLauncherCommandLineRunner |
jobLauncherCommandLineRunner() |
JobOperator |
jobOperator(JobExplorer jobExplorer,
JobLauncher jobLauncher,
ListableJobLocator jobRegistry,
JobRepository jobRepository) |
@Bean @ConditionalOnMissingBean public BatchDatabaseInitializer batchDatabaseInitializer()
@Bean @ConditionalOnMissingBean public JobLauncherCommandLineRunner jobLauncherCommandLineRunner()
@Bean @ConditionalOnMissingBean public ExitCodeGenerator jobExecutionExitCodeGenerator()
@Bean @ConditionalOnMissingBean public JobExplorer jobExplorer(DataSource dataSource) throws Exception
Exception
@Bean @ConditionalOnMissingBean public JobOperator jobOperator(JobExplorer jobExplorer, JobLauncher jobLauncher, ListableJobLocator jobRegistry, JobRepository jobRepository) throws Exception
Exception
Copyright © 2014. All rights reserved.