@ControllerAdvice
public class GlobalExceptionHandler
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected org.slf4j.Logger |
logger |
| 构造器和说明 |
|---|
GlobalExceptionHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.web.servlet.ModelAndView |
handleException(org.apache.shiro.authz.UnauthorizedException e,
javax.servlet.http.HttpServletRequest request) |
org.springframework.web.servlet.ModelAndView |
handleException2(org.apache.shiro.authz.AuthorizationException e,
javax.servlet.http.HttpServletRequest request) |
org.springframework.web.servlet.ModelAndView |
jsonErrorHandler(javax.servlet.http.HttpServletRequest request,
java.lang.Exception e) |
@ExceptionHandler(value=java.lang.Exception.class)
@ResponseBody
public org.springframework.web.servlet.ModelAndView jsonErrorHandler(javax.servlet.http.HttpServletRequest request,
java.lang.Exception e)
throws java.lang.Exception
java.lang.Exception@ExceptionHandler(value=org.apache.shiro.authz.UnauthorizedException.class)
public org.springframework.web.servlet.ModelAndView handleException(org.apache.shiro.authz.UnauthorizedException e,
javax.servlet.http.HttpServletRequest request)
@ExceptionHandler(value=org.apache.shiro.authz.AuthorizationException.class)
public org.springframework.web.servlet.ModelAndView handleException2(org.apache.shiro.authz.AuthorizationException e,
javax.servlet.http.HttpServletRequest request)
Copyright © 2019. All Rights Reserved.