Skip to content

Commit

Permalink
feat(#1) : scheduled cron
Browse files Browse the repository at this point in the history
  • Loading branch information
eojinny committed Nov 14, 2023
1 parent e0d0692 commit 6cab3a7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ public class MorphemeController {
private final MorphemeService morphemeService;
//@GetMapping("/analysis/{msg}")

//@Scheduled(cron = "* * * * * *")
@GetMapping("/test")
@Scheduled(cron = "55 3 * * 2")
//@GetMapping("/test")
public String analysis() throws JsonProcessingException {
String newsList1 = newsAPIService.naverAPI("주 69시간 근로시간 제도 개편");
String newsList2 = newsAPIService.naverAPI("이태원 참사");
Expand Down

0 comments on commit 6cab3a7

Please sign in to comment.