From 6cce675bb26ab0ffbdc19fe7f48cb3fcbd9890e3 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期二, 07 一月 2025 16:01:18 +0800 Subject: [PATCH] 压缩空气优化调度 --- shasteel-biz/src/main/java/com/iailab/module/shasteel/job/init/JobCommandLineRunner.java | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/shasteel-biz/src/main/java/com/iailab/module/shasteel/job/init/JobCommandLineRunner.java b/shasteel-biz/src/main/java/com/iailab/module/shasteel/job/init/JobCommandLineRunner.java index e9f61e8..71d5694 100644 --- a/shasteel-biz/src/main/java/com/iailab/module/shasteel/job/init/JobCommandLineRunner.java +++ b/shasteel-biz/src/main/java/com/iailab/module/shasteel/job/init/JobCommandLineRunner.java @@ -6,20 +6,22 @@ import com.iailab.module.shasteel.job.utils.ScheduleUtils; import org.quartz.CronTrigger; import org.quartz.Scheduler; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.CommandLineRunner; import org.springframework.stereotype.Component; -import javax.annotation.Resource; import java.util.List; /** * 初始化定时任务数据 + * + * @author Mark sunlightcs@gmail.com */ @Component public class JobCommandLineRunner implements CommandLineRunner { - @Resource + @Autowired private Scheduler scheduler; - @Resource + @Autowired private ScheduleJobDao scheduleJobDao; @Override -- Gitblit v1.9.3