You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
640 B
Java
26 lines
640 B
Java
5 years ago
|
package com.ann.demo.job.obsolete;
|
||
|
|
||
|
import com.ann.demo.job.SchedulerAllJob;
|
||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||
|
import org.springframework.boot.CommandLineRunner;
|
||
|
import org.springframework.stereotype.Component;
|
||
|
|
||
|
/**
|
||
|
* 定时任务
|
||
|
*
|
||
|
* @Author: LeiJiaXin
|
||
|
* @Date: 2019/7/13 17:03
|
||
|
*/
|
||
|
@Component
|
||
|
public class QuartzConfig implements CommandLineRunner {
|
||
|
|
||
|
@Autowired
|
||
|
public SchedulerAllJob scheduleJobs;
|
||
|
|
||
|
@Override
|
||
|
public void run(String... args) throws Exception {
|
||
|
scheduleJobs.scheduleJobs();
|
||
|
System.out.println(">>>>>>>>>>>>>>>定时任务开始执行<<<<<<<<<<<<<");
|
||
|
}
|
||
|
}
|