From 76b2316e17bf4fb3cc324722e7cba0487a8f5cb9 Mon Sep 17 00:00:00 2001 From: jzl Date: Mon, 14 Oct 2019 09:44:37 +0800 Subject: [PATCH] Update XxlJobAdminConfig.java --- .../com/xxl/job/admin/core/conf/XxlJobAdminConfig.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/xxl-job-admin/src/main/java/com/xxl/job/admin/core/conf/XxlJobAdminConfig.java b/xxl-job-admin/src/main/java/com/xxl/job/admin/core/conf/XxlJobAdminConfig.java index 1e348a32..8eb91da6 100644 --- a/xxl-job-admin/src/main/java/com/xxl/job/admin/core/conf/XxlJobAdminConfig.java +++ b/xxl-job-admin/src/main/java/com/xxl/job/admin/core/conf/XxlJobAdminConfig.java @@ -18,16 +18,15 @@ import javax.sql.DataSource; * * @author xuxueli 2017-04-28 */ -@Component -public class XxlJobAdminConfig implements InitializingBean{ + +public class XxlJobAdminConfig { private static XxlJobAdminConfig adminConfig = null; public static XxlJobAdminConfig getAdminConfig() { return adminConfig; } - @Override - public void afterPropertiesSet() throws Exception { - adminConfig = this; + public static void setAdminConfig(XxlJobAdminConfig config) { + XxlJobAdminConfig.adminConfig = config; } // conf