Getting “Scope 'step' is not active for the current thread” while creating spring batch beans
问题 In my Spring batch configuration, I'm trying to setup a partitioned step, which accesses values from JobParameters as follows : @Bean @Qualifier("partitionJob") public Job partitionJob() throws Exception { return jobBuilderFactory .get("partitionJob") .incrementer(new RunIdIncrementer()) .start(partitionStep(null)) .build(); } @Bean @StepScope //I'm getting exception here - > Error creating bean public Step partitionStep( @Value("#{jobParameters[gridSize]}") String gridSize) throws Exception