@Configuration @ConditionalOnClass(value={org.springframework.batch.core.launch.JobLauncher.class,javax.sql.DataSource.class,org.springframework.jdbc.core.JdbcOperations.class}) @ConditionalOnBean(value=org.springframework.batch.core.launch.JobLauncher.class) 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() |
org.springframework.boot.ExitCodeGenerator |
jobExecutionExitCodeGenerator() |
org.springframework.batch.core.explore.JobExplorer |
jobExplorer(DataSource dataSource) |
JobLauncherCommandLineRunner |
jobLauncherCommandLineRunner() |
org.springframework.batch.core.launch.JobOperator |
jobOperator(org.springframework.batch.core.explore.JobExplorer jobExplorer,
org.springframework.batch.core.launch.JobLauncher jobLauncher,
org.springframework.batch.core.configuration.ListableJobLocator jobRegistry,
org.springframework.batch.core.repository.JobRepository jobRepository) |
@Bean @ConditionalOnMissingBean public BatchDatabaseInitializer batchDatabaseInitializer()
@Bean @ConditionalOnMissingBean public JobLauncherCommandLineRunner jobLauncherCommandLineRunner()
@Bean @ConditionalOnMissingBean public org.springframework.boot.ExitCodeGenerator jobExecutionExitCodeGenerator()
@Bean @ConditionalOnMissingBean public org.springframework.batch.core.explore.JobExplorer jobExplorer(DataSource dataSource) throws Exception
Exception@Bean @ConditionalOnMissingBean public org.springframework.batch.core.launch.JobOperator jobOperator(org.springframework.batch.core.explore.JobExplorer jobExplorer, org.springframework.batch.core.launch.JobLauncher jobLauncher, org.springframework.batch.core.configuration.ListableJobLocator jobRegistry, org.springframework.batch.core.repository.JobRepository jobRepository) throws Exception
ExceptionCopyright © 2014. All rights reserved.