* 스케쥴 변수명 변경

This commit is contained in:
xxxjjhhh
2024-07-27 13:08:22 +09:00
parent c4a9519100
commit 51412d0e09

View File

@@ -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);
} }