|
@@ -0,0 +1,18 @@
|
|
|
|
+package com.tzld.piaoquan.offline.job;
|
|
|
|
+
|
|
|
|
+import com.xxl.job.core.biz.model.ReturnT;
|
|
|
|
+import com.xxl.job.core.handler.annotation.XxlJob;
|
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
|
+
|
|
|
|
+@Slf4j
|
|
|
|
+@Component
|
|
|
|
+public class TestJob {
|
|
|
|
+
|
|
|
|
+ @XxlJob("testJob")
|
|
|
|
+ public ReturnT<String> testJob(String param) {
|
|
|
|
+ log.info("测试定时任务");
|
|
|
|
+ System.out.println("测试定时任务");
|
|
|
|
+ return ReturnT.SUCCESS;
|
|
|
|
+ }
|
|
|
|
+}
|