提交 | 用户 | 时间
|
71e81e
|
1 |
package cn.stylefeng.guns.core.schedue.quartz; |
懒 |
2 |
|
|
3 |
import org.quartz.JobExecutionContext; |
|
4 |
import org.springframework.scheduling.quartz.QuartzJobBean; |
|
5 |
|
|
6 |
/** |
|
7 |
* quartz的执行示例 |
|
8 |
* |
|
9 |
* @author fengshuonan |
|
10 |
* @Date 2019/2/24 16:55 |
|
11 |
*/ |
|
12 |
public class SampleQuartzJob extends QuartzJobBean { |
|
13 |
|
|
14 |
@Override |
|
15 |
protected void executeInternal(JobExecutionContext context) { |
|
16 |
System.err.println("<<<<<调试信息,注释掉SchedulingConfig类中的内容来关闭这个定时任务!>>>>> quartz task执行 >>>>> quartz执行了!"); |
|
17 |
} |
|
18 |
|
|
19 |
} |