@ControllerAdvice를 사용하여 예외처리 하는 방법을 알아보자. @ControllerAdvice public class ExceptionControllerAdvice { @ExceptionHandler(Exception.class) public String handleException(Exception e, Model model) { model.addAttribute("msg", "에러 발생"); return "error/error"; } @ExceptionHandler(NoHandlerFoundException.class) @ResponseStatus(value = HttpStatus.NOT_FOUND) public String handle404(NoHandlerFoundException e..