From 6d919cafb416d89dd6da95427e49e04783a1be04 Mon Sep 17 00:00:00 2001 From: love98 Date: Thu, 23 Nov 2023 18:47:32 +0800 Subject: [PATCH] fix(scheduler start error): change scheduler start method --- src/main/java/sast/evento/config/SchedulerConfig.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/sast/evento/config/SchedulerConfig.java b/src/main/java/sast/evento/config/SchedulerConfig.java index 2f9c0eb..166ad4a 100644 --- a/src/main/java/sast/evento/config/SchedulerConfig.java +++ b/src/main/java/sast/evento/config/SchedulerConfig.java @@ -1,17 +1,14 @@ package sast.evento.config; import lombok.extern.slf4j.Slf4j; -import org.quartz.Scheduler; import org.quartz.SchedulerException; import org.quartz.SchedulerFactory; import org.quartz.impl.StdSchedulerFactory; import org.springframework.context.ApplicationListener; -import org.springframework.context.annotation.Bean; 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 @@ -23,7 +20,9 @@ public class SchedulerConfig implements ApplicationListener