/**
* spring batch 配置
* @author
*/
@Configuration
@EnableBatchProcessing
public class BlackListBatchConfiguration {
private static final Logger logger = LoggerFactory.getLogger(BlackListBatchConfiguration.class);
/**
* 读取外部文件方法
* @return
* @throws IOException
*/
@Bean
@StepScope
public ItemReader<BlackListDO> reader(@Value("#{jobParameters[inputFileBlack]}") String inputFile) throws IOException {
请问参数@Value("#{jobParameters[inputFileBlack]}") String inputFile 应该怎么设置传入这里?
* spring batch 配置
* @author
*/
@Configuration
@EnableBatchProcessing
public class BlackListBatchConfiguration {
private static final Logger logger = LoggerFactory.getLogger(BlackListBatchConfiguration.class);
/**
* 读取外部文件方法
* @return
* @throws IOException
*/
@Bean
@StepScope
public ItemReader<BlackListDO> reader(@Value("#{jobParameters[inputFileBlack]}") String inputFile) throws IOException {
请问参数@Value("#{jobParameters[inputFileBlack]}") String inputFile 应该怎么设置传入这里?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货