我开始处理一个旧项目,当我使用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
有帮助吗?