Class JdbcBatchItemWriterAutoConfiguration

java.lang.Object
org.springframework.cloud.task.batch.autoconfigure.jdbc.JdbcBatchItemWriterAutoConfiguration

@AutoConfiguration @EnableConfigurationProperties(JdbcBatchItemWriterProperties.class) @AutoConfigureAfter(org.springframework.boot.autoconfigure.batch.BatchAutoConfiguration.class) @Import(org.springframework.cloud.task.batch.autoconfigure.jdbc.JDBCSingleStepDataSourceAutoConfiguration.class) public class JdbcBatchItemWriterAutoConfiguration extends Object
Autconfiguration for a JdbcBatchItemWriter.
Since:
2.3
Author:
Glenn Renfro, Michael Minella
  • Constructor Details

  • Method Details

    • itemWriter

      @Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="spring.batch.job.jdbcbatchitemwriter", name="name") public org.springframework.batch.item.database.JdbcBatchItemWriter<Map<String,Object>> itemWriter()
    • jdbcBatchItemWriterDataSourceProperties

      @ConditionalOnProperty(prefix="spring.batch.job.jdbcbatchitemwriter.datasource", name="enable", havingValue="true") @Bean(name="jdbcBatchItemWriterDataSourceProperties") @ConfigurationProperties("jdbcbatchitemwriter.datasource") public org.springframework.boot.autoconfigure.jdbc.DataSourceProperties jdbcBatchItemWriterDataSourceProperties()
    • writerDataSource

      @ConditionalOnProperty(prefix="spring.batch.job.jdbcbatchitemwriter.datasource", name="enable", havingValue="true") @Bean(name="jdbcBatchItemWriterSpringDataSource") public DataSource writerDataSource(@Qualifier("jdbcBatchItemWriterDataSourceProperties") org.springframework.boot.autoconfigure.jdbc.DataSourceProperties writerDataSourceProperties)