@@ -2,7 +2,9 @@ package com.sckj.project;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.scheduling.annotation.EnableScheduling;
+@EnableScheduling
@SpringBootApplication
public class ProjectSynServiceApplication {
@@ -0,0 +1,17 @@
+package com.sckj.project.task;
+
+import org.springframework.scheduling.annotation.Scheduled;
+/**
+ * @Description
+ * @Author bqyang
+ * @Date 2025/3/4 15:02
+ * @Version 1.0
+ */
+public class ProjectTaskController {
+ @Scheduled(cron = "0 0 0/1 * * ?")
+ public void task1(){
+ System.out.println("task1");
+ }
+}