Browse Source

Update XxlJobScheduler.java

jzl 5 years ago
parent
commit
49d7c97a2e
No account linked to committer's email

+ 5 - 6
xxl-job-admin/src/main/java/com/xxl/job/admin/core/conf/XxlJobScheduler.java View File

@@ -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