|
|
@@ -0,0 +1,18 @@
|
|
|
+package com.goafanti.common.task;
|
|
|
+
|
|
|
+import org.springframework.scheduling.annotation.Scheduled;
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
+
|
|
|
+import com.goafanti.common.utils.LoggerUtils;
|
|
|
+
|
|
|
+@Component
|
|
|
+public class PatentTask {
|
|
|
+ /**
|
|
|
+ * "0 0 10 * * ?" 每天上午10点触发一次
|
|
|
+ */
|
|
|
+ @Scheduled(cron = "0 0 10 * * ?")
|
|
|
+ public void run() {
|
|
|
+ LoggerUtils.debug(getClass(), "开始检查专利到期");
|
|
|
+
|
|
|
+ }
|
|
|
+}
|