From 51412d0e09f36fa3e2b97a410bde427f52e6e1f4 Mon Sep 17 00:00:00 2001 From: xxxjjhhh Date: Sat, 27 Jul 2024 13:08:22 +0900 Subject: [PATCH] =?UTF-8?q?*=20=EC=8A=A4=EC=BC=80=EC=A5=B4=20=EB=B3=80?= =?UTF-8?q?=EC=88=98=EB=AA=85=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/example/springbatch/schedule/FirstSchedule.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/example/springbatch/schedule/FirstSchedule.java b/src/main/java/com/example/springbatch/schedule/FirstSchedule.java index 8e7ff9a..260ad38 100644 --- a/src/main/java/com/example/springbatch/schedule/FirstSchedule.java +++ b/src/main/java/com/example/springbatch/schedule/FirstSchedule.java @@ -26,7 +26,7 @@ public class FirstSchedule { this.applicationContext = applicationContext; } - @Scheduled(cron = "1 * * * * *", zone = "Asia/Seoul") + @Scheduled(cron = "10 * * * * *", zone = "Asia/Seoul") public void runFirstJob() throws JobInstanceAlreadyCompleteException, JobExecutionAlreadyRunningException, JobParametersInvalidException, @@ -39,7 +39,7 @@ public class FirstSchedule { .addString("date", date) .toJobParameters(); - Job firstJob = applicationContext.getBean("FirstJob", Job.class); + Job firstJob = applicationContext.getBean("firstJob", Job.class); jobLauncher.run(firstJob, jobParameters); }