|
@@ -106,9 +106,9 @@ public class DynamicScheduleTask implements SchedulingConfigurer {
|
|
bean.getClass().getMethod(task.getMethodName(), (Class<?>) null);
|
|
bean.getClass().getMethod(task.getMethodName(), (Class<?>) null);
|
|
if (StrUtil.isBlank(cron)) {
|
|
if (StrUtil.isBlank(cron)) {
|
|
log.error("没有找到 ClassName:{}, Cron:{}", task.getClassName(), task.getCron());
|
|
log.error("没有找到 ClassName:{}, Cron:{}", task.getClassName(), task.getCron());
|
|
|
|
+ } else {
|
|
|
|
+ flag = true;
|
|
}
|
|
}
|
|
-
|
|
|
|
- flag = true;
|
|
|
|
} catch (ClassNotFoundException e) {
|
|
} catch (ClassNotFoundException e) {
|
|
log.error("没有找到 ClassName:{}", task.getClassName(), e);
|
|
log.error("没有找到 ClassName:{}", task.getClassName(), e);
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|