spring batch + spring boot 的jobParameters传入
/**
* 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 应该怎么设置传入这里?