瀏覽代碼

Update XxlJobScheduler.java

jzl 5 年之前
父節點
當前提交
49d7c97a2e
沒有帳戶連結到提交者的電子郵件
共有 1 個文件被更改,包括 5 次插入6 次删除
  1. 5 6
      xxl-job-admin/src/main/java/com/xxl/job/admin/core/conf/XxlJobScheduler.java

+ 5 - 6
xxl-job-admin/src/main/java/com/xxl/job/admin/core/conf/XxlJobScheduler.java 查看文件

@@ -33,14 +33,13 @@ import java.util.concurrent.ConcurrentMap;
33 33
 /**
34 34
  * @author xuxueli 2018-10-28 00:18:17
35 35
  */
36
-@Component
37
-@DependsOn("xxlJobAdminConfig")
38
-public class XxlJobScheduler implements InitializingBean, DisposableBean {
36
+
37
+public class XxlJobScheduler  {
39 38
     private static final Logger logger = LoggerFactory.getLogger(XxlJobScheduler.class);
40 39
 
41 40
 
42
-    @Override
43
-    public void afterPropertiesSet() throws Exception {
41
+    
42
+    public void init() throws Exception {
44 43
         // init i18n
45 44
         initI18n();
46 45
 
@@ -59,7 +58,7 @@ public class XxlJobScheduler implements InitializingBean, DisposableBean {
59 58
         logger.info(">>>>>>>>> init xxl-job admin success.");
60 59
     }
61 60
 
62
-    @Override
61
+    
63 62
     public void destroy() throws Exception {
64 63
 
65 64
         // stop-schedule