From 182f7e5b8c952c83c8f4a12e47fd159bfb8ba9b1 Mon Sep 17 00:00:00 2001 From: eojin0814 Date: Tue, 14 Nov 2023 09:52:11 +0900 Subject: [PATCH] fix (#1) : scheduled delay of 10 seconds --- .../server/domain/morpheme/presentation/MorphemeController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 d4cd989..5fc7639 100644 --- a/src/main/java/gwangjang/server/domain/morpheme/presentation/MorphemeController.java +++ b/src/main/java/gwangjang/server/domain/morpheme/presentation/MorphemeController.java @@ -22,7 +22,7 @@ public class MorphemeController { private final NewsAPIService newsAPIService; private final MorphemeService morphemeService; //@GetMapping("/analysis/{msg}") - @Scheduled(cron = "* * * * * 2" , fixedDelay = 30000) + @Scheduled(fixedDelay = 30000) public String analysis() throws JsonProcessingException { String newsList1 = newsAPIService.naverAPI("주 69시간 근로시간 제도 개편"); String newsList2 = newsAPIService.naverAPI("이태원 참사");