diff --git a/src/main/java/upbrella/be/user/controller/UserExceptionHandler.java b/src/main/java/upbrella/be/user/controller/UserExceptionHandler.java index a2bb21e5..6db25f1c 100644 --- a/src/main/java/upbrella/be/user/controller/UserExceptionHandler.java +++ b/src/main/java/upbrella/be/user/controller/UserExceptionHandler.java @@ -75,4 +75,15 @@ public ResponseEntity notLogin(NotLoginException ex) { 400, "로그인이 필요합니다.")); } + + @ExceptionHandler(BlackListUserException.class) + public ResponseEntity blackListUser(BlackListUserException ex) { + + return ResponseEntity + .badRequest() + .body(new CustomErrorResponse( + "fail", + 400, + "정지된 회원입니다. 정지된 회원은 이용이 불가능합니다.")); + } } \ No newline at end of file diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index 3f9c5627..d46e3382 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -12,9 +12,9 @@ spring: default_batch_fetch_size: 1000 format_sql: true redis: - host: ${REDIS_HOST} - port: ${REDIS_PORT} - password: ${REDIS_PASSWORD} + host: ${PROD_REDIS_HOST} + port: ${PROD_REDIS_PORT} + password: ${PROD_REDIS_PASSWORD} timeout: 60000 session: store-type: redis