注解去掉 default "",必须指定任务名称。

master
abel533 5 years ago
parent 99c9a2ab63
commit d016661ac4
  1. 2
      xxl-job-core/src/main/java/com/xxl/job/core/handler/annotation/JobHandler.java
  2. 2
      xxl-job-core/src/main/java/com/xxl/job/core/handler/annotation/XxlJob.java

@ -19,6 +19,6 @@ import java.lang.annotation.Target;
@Deprecated
public @interface JobHandler {
String value() default "";
String value();
}

@ -15,7 +15,7 @@ public @interface XxlJob {
/**
* jobhandler name
*/
String value() default "";
String value();
/**
* init handler, invoked when JobThread init

Loading…
Cancel
Save