From 6cab3a71edab7a93c306f8d90e735725530f95fd Mon Sep 17 00:00:00 2001 From: eojin0814 Date: Tue, 14 Nov 2023 15:48:56 +0900 Subject: [PATCH] feat(#1) : scheduled cron --- .../domain/morpheme/presentation/MorphemeController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/gwangjang/server/domain/morpheme/presentation/MorphemeController.java b/src/main/java/gwangjang/server/domain/morpheme/presentation/MorphemeController.java index d37f863..d186b43 100644 --- a/src/main/java/gwangjang/server/domain/morpheme/presentation/MorphemeController.java +++ b/src/main/java/gwangjang/server/domain/morpheme/presentation/MorphemeController.java @@ -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("이태원 참사");