修改代码

This commit is contained in:
chy
2026-02-09 11:19:24 +08:00
parent 16a985e8cc
commit c1a3e0f709
6 changed files with 8 additions and 7 deletions

View File

@@ -20,7 +20,7 @@ public class QuartzAutoConfiguration {
@Bean
public SchedulerManager schedulerManager(Optional<Scheduler> scheduler) {
if (!scheduler.isPresent()) {
log.info("[定时任务 - 已禁用][参考 https://doc.iocoder.cn/job/ 开启]");
return new SchedulerManager(null);
}
return new SchedulerManager(scheduler.get());

View File

@@ -139,7 +139,7 @@ public class SchedulerManager {
private void validateScheduler() {
if (scheduler == null) {
throw exception0(NOT_IMPLEMENTED.getCode(),
"[定时任务 - 已禁用][参考 https://doc.iocoder.cn/job/ 开启]");
"[定时任务 - 已禁用]");
}
}