* 스케쥴 변수명 변경
This commit is contained in:
@@ -26,7 +26,7 @@ public class FirstSchedule {
|
|||||||
this.applicationContext = applicationContext;
|
this.applicationContext = applicationContext;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Scheduled(cron = "1 * * * * *", zone = "Asia/Seoul")
|
@Scheduled(cron = "10 * * * * *", zone = "Asia/Seoul")
|
||||||
public void runFirstJob() throws JobInstanceAlreadyCompleteException,
|
public void runFirstJob() throws JobInstanceAlreadyCompleteException,
|
||||||
JobExecutionAlreadyRunningException,
|
JobExecutionAlreadyRunningException,
|
||||||
JobParametersInvalidException,
|
JobParametersInvalidException,
|
||||||
@@ -39,7 +39,7 @@ public class FirstSchedule {
|
|||||||
.addString("date", date)
|
.addString("date", date)
|
||||||
.toJobParameters();
|
.toJobParameters();
|
||||||
|
|
||||||
Job firstJob = applicationContext.getBean("FirstJob", Job.class);
|
Job firstJob = applicationContext.getBean("firstJob", Job.class);
|
||||||
|
|
||||||
jobLauncher.run(firstJob, jobParameters);
|
jobLauncher.run(firstJob, jobParameters);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user