@ControllerAdvice
public class GlobalExceptionResolver
extends org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver
| 构造器和说明 |
|---|
GlobalExceptionResolver() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.web.servlet.ModelAndView |
defaultErrorHandler(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler,
Exception ex) |
doResolveException, handleBindException, handleConversionNotSupported, handleHttpMediaTypeNotAcceptable, handleHttpMediaTypeNotSupported, handleHttpMessageNotReadable, handleHttpMessageNotWritable, handleHttpRequestMethodNotSupported, handleMethodArgumentNotValidException, handleMissingPathVariable, handleMissingServletRequestParameter, handleMissingServletRequestPartException, handleNoHandlerFoundException, handleNoSuchRequestHandlingMethod, handleServletRequestBindingException, handleTypeMismatch, sendServerError@ExceptionHandler(value=java.lang.Exception.class) public org.springframework.web.servlet.ModelAndView defaultErrorHandler(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler, Exception ex) throws Exception
ExceptionCopyright © 2018. All rights reserved.