79221984

Date: 2024-11-25 07:16:10
Score: 0.5
Natty:
Report link

Issue: Before my batch was not running automatically.

Solution: I have changed the "spring-boot-starter-parent" version from 3.2.11 to 2.7.9.

  1. Main classor BatchConfig class -- add @EnableBatchProcessing
  2. BatchConfig.java -- add @Configuration
  3. Use below fields in BatchConfig.java : @Autowired private JobBuilderFactory jobBuilderFactory; @Autowired private StepBuilderFactory stepBuilderFactory;
Reasons:
  • Whitelisted phrase (-2): Solution:
  • No code block (0.5):
  • User mentioned (1): @EnableBatchProcessing
  • User mentioned (0): @Configuration
  • User mentioned (0): @Autowired
  • User mentioned (0): @Autowired
  • Low reputation (1):
Posted by: Ganesh Shri