Created
May 8, 2020 15:31
-
-
Save ppyong/4487fccc1ae50f1ad0daa455eb1aa818 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ControllerAdvice | |
public class GlobalControllerAdvice { | |
@ExceptionHandler(Exception.class) | |
public String handleException(Exception e){ | |
return "error"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment