From 37d75a81b91378ae45ee13a6f2f8b1762e69ee83 Mon Sep 17 00:00:00 2001 From: bflykky Date: Fri, 2 Aug 2024 21:46:15 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20@CookieValue=20required=20=EC=86=8D?= =?UTF-8?q?=EC=84=B1=20false=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @CookieValue required 속성 변경 통해 입력 관련 문제 GlobalExceptionHandler에서 처리하도록 설정 --- .../com/umc/naoman/domain/member/controller/AuthController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/umc/naoman/domain/member/controller/AuthController.java b/src/main/java/com/umc/naoman/domain/member/controller/AuthController.java index a4cc8b2..62c02d9 100644 --- a/src/main/java/com/umc/naoman/domain/member/controller/AuthController.java +++ b/src/main/java/com/umc/naoman/domain/member/controller/AuthController.java @@ -41,7 +41,7 @@ public class AuthController { @Parameter(name = "temp-member-info", description = "리다이렉션 시에 쿠키로 넘겨준 사용자 정보가 담긴 jwt를 입력해 주세요.", hidden = true, in = ParameterIn.COOKIE) }) - public ResultResponse signup(@CookieValue("temp-member-info") Cookie tempMemberInfoCookie, + public ResultResponse signup(@CookieValue(value = "temp-member-info", required = false) Cookie tempMemberInfoCookie, @Valid @RequestBody MarketingAgreedRequest request) { // 추후에 핸들러 처리로 바꿀까 생각 중 if (tempMemberInfoCookie == null) {