Skip to content

Commit

Permalink
[Fix] 버그 수정 (#402)
Browse files Browse the repository at this point in the history
* fix: 블랙리스트 회원 가입 정지 에러 처리 (#401)

* fix: redis prod, dev 환경 분리
  • Loading branch information
birdieHyun authored Dec 16, 2023
1 parent 62a542a commit b47996e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,15 @@ public ResponseEntity<CustomErrorResponse> notLogin(NotLoginException ex) {
400,
"로그인이 필요합니다."));
}

@ExceptionHandler(BlackListUserException.class)
public ResponseEntity<CustomErrorResponse> blackListUser(BlackListUserException ex) {

return ResponseEntity
.badRequest()
.body(new CustomErrorResponse(
"fail",
400,
"정지된 회원입니다. 정지된 회원은 이용이 불가능합니다."));
}
}
6 changes: 3 additions & 3 deletions src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b47996e

Please sign in to comment.