We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fe5afeb + e3f3a53 commit c4977ceCopy full SHA for c4977ce
src/main/java/com/asearch/logvisualization/job/CronTable.java
@@ -0,0 +1,22 @@
1
+package com.asearch.logvisualization.job;
2
+
3
+import lombok.AllArgsConstructor;
4
+import lombok.extern.slf4j.Slf4j;
5
+import org.springframework.scheduling.annotation.Scheduled;
6
+import org.springframework.stereotype.Component;
7
8
+@AllArgsConstructor
9
+@Component
10
+@Slf4j
11
+public class CronTable {
12
13
14
15
+ @Scheduled(cron = "*/30 * * * * *")
16
+ public String aJob() throws Exception {
17
18
+ log.info("My Cron Test");
19
+// log.info(profileService.getBasicInfo());
20
+ return "ABC";
21
+ }
22
+}
0 commit comments