From fe8c1fbe292fd0084ffbf2b4818b503742c7b566 Mon Sep 17 00:00:00 2001 From: pandahwang Date: Mon, 7 Oct 2024 20:21:51 +0900 Subject: [PATCH] =?UTF-8?q?add:=20=EC=A0=84=EC=B2=B4=20=EC=A7=81=EC=97=85?= =?UTF-8?q?=20=ED=86=B5=EA=B3=84=20=EC=A1=B0=ED=9A=8C=EC=97=90=20=EC=BA=90?= =?UTF-8?q?=EC=8B=B1=20=EA=B8=B0=EB=8A=A5=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LostArk/LostArk/controller/OuterDataController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/TeamNull/LostArk/LostArk/controller/OuterDataController.java b/src/main/java/com/TeamNull/LostArk/LostArk/controller/OuterDataController.java index 551f34f..4cff707 100644 --- a/src/main/java/com/TeamNull/LostArk/LostArk/controller/OuterDataController.java +++ b/src/main/java/com/TeamNull/LostArk/LostArk/controller/OuterDataController.java @@ -4,6 +4,7 @@ import com.TeamNull.LostArk.LostArk.service.OuterDataService; import lombok.RequiredArgsConstructor; import org.json.simple.parser.ParseException; +import org.springframework.cache.annotation.Cacheable; import org.springframework.web.bind.annotation.*; import java.io.IOException; @@ -18,7 +19,7 @@ public class OuterDataController { private final OuterDataService outerDataService; // 목표 : Get 요청 시 api로부터 데이터를 받아와 저장 후 반환하도록 구현. - + @Cacheable(cacheNames = "getOuterData", key = "outerdata", cacheManager = "cacheManager") @GetMapping("/statistics/alluser") public List alluser() { List resData = null;