diff --git a/Server/src/main/java/JGS/CasperEvent/global/error/GlobalExceptionHandler.java b/Server/src/main/java/JGS/CasperEvent/global/error/GlobalExceptionHandler.java index 2d413742..df0cc858 100644 --- a/Server/src/main/java/JGS/CasperEvent/global/error/GlobalExceptionHandler.java +++ b/Server/src/main/java/JGS/CasperEvent/global/error/GlobalExceptionHandler.java @@ -42,7 +42,7 @@ public ResponseEntity methodArgumentNotValidExceptionHandler(Meth } @ExceptionHandler(RuntimeException.class) - public ResponseEntity RuntimeExceptionHandler(RuntimeException e){ + public ResponseEntity runtimeExceptionHandler(RuntimeException e){ log.error("RuntimeException [{}]", e.getMessage(), e); return ResponseEntity .status(HttpStatus.BAD_REQUEST) diff --git a/Server/src/main/resources/application-prod.yml b/Server/src/main/resources/application-prod.yml index 5de00a76..4cb5173e 100644 --- a/Server/src/main/resources/application-prod.yml +++ b/Server/src/main/resources/application-prod.yml @@ -4,6 +4,8 @@ spring: username: ${SPRING_DATASOURCE_USERNAME} password: ${SPRING_DATASOURCE_PASSWORD} driver-class-name: com.mysql.cj.jdbc.Driver + hikari: + maximum-pool-size: ${DB_MAX_POOL_SIZE:10} # 기본값 10, 환경변수 DB_MAX_POOL_SIZE로 대체 가능 jpa: hibernate: ddl-auto: update @@ -30,6 +32,7 @@ spring: multipart: max-file-size: 10MB + client: url: ${CLIENT_URL} localUrl: ${LOCAL_CLIENT_URL}