Spring Boot Batch 6.x: Job Parameters are null in Reader despite using @StepScope
Summary The core issue is a mismatch between the bean definition and Spring Batch’s scoped proxy requirements. The job parameter injection fails in the Wso2InstanceItemReader because the JobParams bean is not correctly configured as a step-scoped bean that receives the JobParameters context. While the getInstanceId method in the configuration is annotated with @StepScope, it does … Read more