@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 BOOT] SPRING BATCH + SCHEDULER

scheduler 를 통해서 batch 가 돌고, rest 기능을 수행하는 서버를 spring boot 를 통해서 만들어야 할일이 생겼다. 일단, maven ! org.springframework.boot spring-boot-starter-batch org.springframework.boo..

whereami80.tistory.com

'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
Posted by 張's blog
,