From ba8e63993fa626daaf6b0c5637798cc1ce851663 Mon Sep 17 00:00:00 2001 From: Ahn Jiwan Date: Fri, 10 Nov 2023 11:57:29 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F=20fix:=20date=EB=A5=BC=20?= =?UTF-8?q?string=20type=EC=9C=BC=EB=A1=9C=20=EB=B3=80=EA=B2=BD=20(#62)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/diareat/diareat/food/service/FoodService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/diareat/diareat/food/service/FoodService.java b/src/main/java/com/diareat/diareat/food/service/FoodService.java index 9e9a315..04fa086 100644 --- a/src/main/java/com/diareat/diareat/food/service/FoodService.java +++ b/src/main/java/com/diareat/diareat/food/service/FoodService.java @@ -47,7 +47,7 @@ public Long saveFood(CreateFoodDto createFoodDto) { } // 회원이 특정 날짜에 먹은 음식 조회 - @Cacheable(value = "ResponseFoodDto", key = "#userId+#date", cacheManager = "diareatCacheManager") + @Cacheable(value = "ResponseFoodDto", key = "#userId+#date.toString()", cacheManager = "diareatCacheManager") @Transactional(readOnly = true) public List getFoodListByDate(Long userId, LocalDate date){ validateUser(userId);