Browse Source

update document

xuxueli 5 years ago
parent
commit
d41c992ca1

+ 2 - 2
xxl-job-core/src/main/java/com/xxl/job/core/handler/annotation/XxlJob.java

@@ -20,11 +20,11 @@ public @interface XxlJob {
     /**
     /**
      * init handler, invoked when JobThread init
      * init handler, invoked when JobThread init
      */
      */
-    String init();
+    String init() default "";
 
 
     /**
     /**
      * destroy handler, invoked when JobThread destroy
      * destroy handler, invoked when JobThread destroy
      */
      */
-    String destroy();
+    String destroy() default "";
 
 
 }
 }