完善报错信息

master
maybenot 5 years ago
parent 6b2362a0f2
commit 07cfcd58d6
  1. 2
      xxl-job-core/src/main/java/com/xxl/job/core/executor/impl/XxlJobSpringExecutor.java

@ -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);
} }

Loading…
Cancel
Save