From 18573145a7d487b7084afe550f3e270c971bf272 Mon Sep 17 00:00:00 2001 From: love98 Date: Thu, 23 Nov 2023 18:57:25 +0800 Subject: [PATCH] fix(scheduler start error): change startScheduler method in SchedulerUtil --- src/main/java/sast/evento/config/SchedulerConfig.java | 6 ++---- src/main/java/sast/evento/utils/SchedulerUtil.java | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main/java/sast/evento/config/SchedulerConfig.java b/src/main/java/sast/evento/config/SchedulerConfig.java index 166ad4a..6844f7d 100644 --- a/src/main/java/sast/evento/config/SchedulerConfig.java +++ b/src/main/java/sast/evento/config/SchedulerConfig.java @@ -2,13 +2,12 @@ import lombok.extern.slf4j.Slf4j; import org.quartz.SchedulerException; -import org.quartz.SchedulerFactory; -import org.quartz.impl.StdSchedulerFactory; import org.springframework.context.ApplicationListener; import org.springframework.context.annotation.Configuration; import org.springframework.context.event.ContextRefreshedEvent; import sast.evento.common.enums.ErrorEnum; import sast.evento.exception.LocalRunTimeException; +import sast.evento.utils.SchedulerUtil; /** * @Author: Love98 @@ -21,8 +20,7 @@ public class SchedulerConfig implements ApplicationListener