79578448

Date: 2025-04-17 04:08:40
Score: 1
Natty:
Report link

Already solved, my program can run by add this injection at class MasterDebiturBatchConfig

@Bean
@StepScope
public DebtorReader debtorReader(@Value("#{jobParameters['filePath']}") String filePath) {
    return new DebtorReader(filePath);
}

and remove this annotation and constructor at DebtorReader

@Component
@StepScope
@Scope(proxyMode = ScopedProxyMode.TARGET_CLASS)
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: iyp.prog