Parcourir la source

Update XxlJobScheduler.java

jzl il y a 6 ans
Parent
révision
af3c711974

+ 5 - 6
xxl-job-admin/src/main/java/com/xxl/job/admin/core/conf/XxlJobScheduler.java Voir le fichier

33
 /**
33
 /**
34
  * @author xuxueli 2018-10-28 00:18:17
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
     private static final Logger logger = LoggerFactory.getLogger(XxlJobScheduler.class);
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
         // init i18n
43
         // init i18n
45
         initI18n();
44
         initI18n();
46
 
45
 
59
         logger.info(">>>>>>>>> init xxl-job admin success.");
58
         logger.info(">>>>>>>>> init xxl-job admin success.");
60
     }
59
     }
61
 
60
 
62
-    @Override
61
+    
63
     public void destroy() throws Exception {
62
     public void destroy() throws Exception {
64
 
63
 
65
         // stop-schedule
64
         // stop-schedule