diff --git a/src/main/java/today/meevote/controllerAdvice/GlobalExceptionHandler.java b/src/main/java/today/meevote/controllerAdvice/GlobalExceptionHandler.java index a1cb845..0c623b4 100644 --- a/src/main/java/today/meevote/controllerAdvice/GlobalExceptionHandler.java +++ b/src/main/java/today/meevote/controllerAdvice/GlobalExceptionHandler.java @@ -24,15 +24,4 @@ public String notFoundException(NotFoundException e) { log.error("notFoundException", e); return "redirect:/notfound"; } - - - @ExceptionHandler(MethodArgumentNotValidException.class) - protected BaseResponse methodArgumentNotValidException(MethodArgumentNotValidException e){ - log.error("invalidInputException", e); - return new BaseResponse( - false, - FailureInfo.INVALID_INPUT.getCode(), - e.getFieldError().getDefaultMessage() - ); - } }