Step Spring Batch问题中的构建功能

时间:2019-03-08 10:28:45

标签: java spring spring-batch

我开始处理一个旧项目,当我使用eclipse(maven)导入时效果很好,但是使用intellij时,未定义build()函数:

@Bean
public Step aggregatingStep(@Qualifier("aggregatingItemProcessor") ItemProcessor aggregatingItemProcessor, 
                            @Qualifier("aggregateDatabaseItemWriter") ItemStreamWriter writer,
                            AggregateDatabaseItemReader reader) {
    // set chunksize to 1 to force commit. however read in database is done with chunkSize property
    return stepBuilderFactory.get("aggregatingStep")
                             .chunk(1)
                             .reader(reader)
                             .writer(writer)
                             .processor(aggregatingItemProcessor)
                             .allowStartIfComplete(false)
                             .build();
}

我正在使用springframwork批处理v3.0.6

有帮助吗?

0 个答案:

没有答案