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 Summary
ConstructorDescriptionJdbcBatchItemWriterAutoConfiguration
(DataSource dataSource, JdbcBatchItemWriterProperties properties) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.boot.autoconfigure.jdbc.DataSourceProperties
writerDataSource
(org.springframework.boot.autoconfigure.jdbc.DataSourceProperties writerDataSourceProperties)
-
Constructor Details
-
JdbcBatchItemWriterAutoConfiguration
public JdbcBatchItemWriterAutoConfiguration(DataSource dataSource, JdbcBatchItemWriterProperties properties)
-
-
Method Details
-
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)
-