Skip to content

Commit c4977ce

Browse files
author
KiWooyoung
authored
Merge pull request #22 from ASearchCrew/feature/is-07-detection-scheduler
ENH #7 : add crontable
2 parents fe5afeb + e3f3a53 commit c4977ce

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)