【修改】 名称替换
This commit is contained in:
@@ -20,7 +20,7 @@ public class ExamQuartzAutoConfiguration {
|
||||
@Bean
|
||||
public SchedulerManager schedulerManager(Optional<Scheduler> scheduler) {
|
||||
if (!scheduler.isPresent()) {
|
||||
log.info("[定时任务 - 已禁用][参考 https://doc.iocoder.cn/job/ 开启]");
|
||||
log.info("[定时任务 - 已禁用]");
|
||||
return new SchedulerManager(null);
|
||||
}
|
||||
return new SchedulerManager(scheduler.get());
|
||||
|
@@ -3,7 +3,7 @@ package pc.exam.pp.framework.quartz.core.handler;
|
||||
/**
|
||||
* 任务处理器
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author 朋辰
|
||||
*/
|
||||
public interface JobHandler {
|
||||
|
||||
|
@@ -21,7 +21,7 @@ import static cn.hutool.core.exceptions.ExceptionUtil.getRootCauseMessage;
|
||||
/**
|
||||
* 基础 Job 调用者,负责调用 {@link JobHandler#execute(String)} 执行任务
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author 朋辰
|
||||
*/
|
||||
@DisallowConcurrentExecution
|
||||
@PersistJobDataAfterExecution
|
||||
|
@@ -16,7 +16,7 @@ import static pc.exam.pp.framework.common.exception.util.ServiceExceptionUtil.ex
|
||||
*
|
||||
* 另外,jobHandlerName 对应到 Spring Bean 的名字,直接调用
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author 朋辰
|
||||
*/
|
||||
public class SchedulerManager {
|
||||
|
||||
|
@@ -7,7 +7,7 @@ import java.time.LocalDateTime;
|
||||
/**
|
||||
* Job 日志 Framework Service 接口
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author 朋辰
|
||||
*/
|
||||
public interface JobLogFrameworkService {
|
||||
|
||||
|
@@ -12,7 +12,7 @@ import java.util.List;
|
||||
/**
|
||||
* Quartz Cron 表达式的工具类
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author 朋辰
|
||||
*/
|
||||
public class CronUtils {
|
||||
|
||||
|
Reference in New Issue
Block a user