From 49d7c97a2e4468ce5d4292e78eae6276e0e13315 Mon Sep 17 00:00:00 2001 From: jzl Date: Mon, 14 Oct 2019 09:46:08 +0800 Subject: [PATCH] Update XxlJobScheduler.java --- .../com/xxl/job/admin/core/conf/XxlJobScheduler.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/xxl-job-admin/src/main/java/com/xxl/job/admin/core/conf/XxlJobScheduler.java b/xxl-job-admin/src/main/java/com/xxl/job/admin/core/conf/XxlJobScheduler.java index 8b51d51b..52deb23e 100644 --- a/xxl-job-admin/src/main/java/com/xxl/job/admin/core/conf/XxlJobScheduler.java +++ b/xxl-job-admin/src/main/java/com/xxl/job/admin/core/conf/XxlJobScheduler.java @@ -33,14 +33,13 @@ import java.util.concurrent.ConcurrentMap; /** * @author xuxueli 2018-10-28 00:18:17 */ -@Component -@DependsOn("xxlJobAdminConfig") -public class XxlJobScheduler implements InitializingBean, DisposableBean { + +public class XxlJobScheduler { private static final Logger logger = LoggerFactory.getLogger(XxlJobScheduler.class); - @Override - public void afterPropertiesSet() throws Exception { + + public void init() throws Exception { // init i18n initI18n(); @@ -59,7 +58,7 @@ public class XxlJobScheduler implements InitializingBean, DisposableBean { logger.info(">>>>>>>>> init xxl-job admin success."); } - @Override + public void destroy() throws Exception { // stop-schedule