2024-10-17 16:51:08 +08:00
|
|
|
package cn.bunny.services.quartz;
|
2024-10-14 21:18:14 +08:00
|
|
|
|
2024-10-15 22:39:22 +08:00
|
|
|
import cn.bunny.services.aop.annotation.QuartzSchedulers;
|
2024-10-14 21:18:14 +08:00
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
import org.quartz.Job;
|
|
|
|
import org.quartz.JobExecutionContext;
|
|
|
|
import org.quartz.JobExecutionException;
|
|
|
|
|
|
|
|
@Slf4j
|
2024-10-20 21:43:46 +08:00
|
|
|
@QuartzSchedulers(type = "test", description = "JobHello任务内容")
|
2024-10-14 21:18:14 +08:00
|
|
|
public class JobHello implements Job {
|
2025-05-07 19:32:29 +08:00
|
|
|
|
2024-10-14 21:18:14 +08:00
|
|
|
@Override
|
|
|
|
public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
|
2025-04-21 14:23:06 +08:00
|
|
|
// 测试使用
|
2024-10-20 21:43:46 +08:00
|
|
|
System.out.print("执行任务--JobHello。。。。。。。。。");
|
2024-10-14 21:18:14 +08:00
|
|
|
}
|
|
|
|
}
|