From c570efa40f579d93c04c59ae6ea2ad70b210daf0 Mon Sep 17 00:00:00 2001 From: mingmingmon Date: Sun, 18 Feb 2024 16:17:39 +0900 Subject: [PATCH 1/2] =?UTF-8?q?hotfix:=20yml=20=ED=95=9C=EA=B8=80=20?= =?UTF-8?q?=EC=84=B8=ED=8C=85=20#172?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 21d8773..0f32330 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -41,4 +41,9 @@ jwt: token-prefix: Bearer server: + servlet: + encoding: + charset: UTF-8 + enabled: true + force: true port: ${PORT} \ No newline at end of file From 7de9f47fdb6123f8c1d7d916da88717b7e1f2e37 Mon Sep 17 00:00:00 2001 From: mingmingmon Date: Sun, 18 Feb 2024 16:55:10 +0900 Subject: [PATCH 2/2] =?UTF-8?q?hotfix:=20=EB=8B=89=EB=84=A4=EC=9E=84=20?= =?UTF-8?q?=EC=A4=91=EB=B3=B5=20=ED=99=95=EC=9D=B8=20requestParam=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=EC=88=98=EC=A0=95=20#176?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../survey_mate_api/auth/presentation/AuthController.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/uk/jinhy/survey_mate_api/auth/presentation/AuthController.java b/src/main/java/uk/jinhy/survey_mate_api/auth/presentation/AuthController.java index 37b9805..b1a2eed 100644 --- a/src/main/java/uk/jinhy/survey_mate_api/auth/presentation/AuthController.java +++ b/src/main/java/uk/jinhy/survey_mate_api/auth/presentation/AuthController.java @@ -10,6 +10,7 @@ import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import uk.jinhy.survey_mate_api.auth.application.dto.AuthServiceDTO; import uk.jinhy.survey_mate_api.auth.application.service.AuthService; @@ -158,10 +159,10 @@ public ApiResponse updateNickname( Status.OK.getMessage(), null); } - @GetMapping("/nickname/{nickname}") + @GetMapping("/nickname/check") @Operation(summary = "닉네임 중복 확인") public ApiResponse checkNickname( - @PathVariable("nickname") String nickname) { + @RequestParam(name = "nickname") String nickname) { boolean isExist = authService.checkNickname(nickname); AuthControllerDTO.IsNicknameExistResponseDTO responseDTO = AuthControllerDTO.IsNicknameExistResponseDTO.builder()