This commit is contained in:
xuxueli 2019-10-21 17:29:13 +08:00
commit a129b07f98
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ public class XxlJobSpringExecutor extends XxlJobExecutor implements ApplicationC
String name = serviceBean.getClass().getAnnotation(JobHandler.class).value(); String name = serviceBean.getClass().getAnnotation(JobHandler.class).value();
IJobHandler handler = (IJobHandler) serviceBean; IJobHandler handler = (IJobHandler) serviceBean;
if (loadJobHandler(name) != null) { if (loadJobHandler(name) != null) {
throw new RuntimeException("xxl-job jobhandler naming conflicts."); throw new RuntimeException("xxl-job jobhandler naming conflicts.error name:"+name);
} }
registJobHandler(name, handler); registJobHandler(name, handler);
} }