在控制器(controller)中添加统一异常处理的方法,在方法前面加@ExceptionHandler[(异常类.class)]注解 转载于:https://www.cnblogs.com/suhfj-825/p/8231433.html