[Spring Batch] 배치 처리 : 실행 및 스케쥴
jobLauncher 및 실행 변수private final JobLauncher jobLauncher;private final JobRegistry jobRegistry;JobParameters jobParameters = new JobParametersBuilder() .addString("date",value) .toJobParameters();jobLauncher.run(jobRegistry.getJob("firstJob"), jobParameters); 1. 컨트롤러에서 실행@RestController@RequiredArgsConstructorpublic class MainController { private final JobLauncher jobLauncher; ..
2024.09.18