| | |
| | | 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 |