@EnableScheduling
@Component
public class TestScheduler {
@Autowired
private JobLauncher jobLauncher;
@Autowired
@Qualifier("simpleJob")
private Job simpleJob;
~~
JobParameters param = new JobParametersBuilder().addString("JobID", String.valueOf(System.currentTimeMillis())).toJobParameters();
JobExecution execution = jobLauncher.run(etlJob(), param);
log.info("Job finished with status :" + execution.getStatus());
}
https://whereami80.tistory.com/m/10
'spring-Integration' 카테고리의 다른 글
[rabbitMQ] retry Mechanism (0) | 2023.11.05 |
---|---|
[scheduler] 스프링 스케줄러 (0) | 2020.12.17 |
[spring-batch] 스프링배치 강좌 (0) | 2020.08.18 |
[spring-batch] batch 에러 (0) | 2020.04.18 |
[spring-batch] 스프링 배치 가이드 (0) | 2019.05.15 |