Commit 77399351 authored by lvzhuangzhuang's avatar lvzhuangzhuang

添加全局异常处理

parent 2d7dc78c
......@@ -124,19 +124,6 @@ public class GlobalExceptionHandler
}
/*---------------------------------------------------*/
/**
* 权限校验异常
* @param e
* @param request
* @return
*/
/* @ExceptionHandler(AccessDeniedException.class)
public AjaxResult handleAccessDeniedException(AccessDeniedException e,
HttpServletRequest request) {
String requestURI = request.getRequestURI();
log.error("请求地址{},权限校验失败{}", requestURI, e.getMessage());
return AjaxResult.error(HttpStatus.FORBIDDEN, "没有权限,请联系管理员授权");
}*/
/**
* 请求方式不支持
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment