类 AbstractErrorController
- java.lang.Object
- org.springframework.boot.autoconfigure.web.AbstractErrorController
- 所有已实现的接口:
ErrorController
- 直接已知子类:
BasicErrorController
public abstract class AbstractErrorController extends Object implements ErrorController
Abstract base class for errorControllerimplementations.- 从以下版本开始:
- 1.3.0
- 另请参阅:
ErrorAttributes
构造器概要
构造器 构造器 说明 AbstractErrorController(ErrorAttributes errorAttributes)AbstractErrorController(ErrorAttributes errorAttributes, List<ErrorViewResolver> errorViewResolvers)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected Map<String,Object>getErrorAttributes(javax.servlet.http.HttpServletRequest request, boolean includeStackTrace)protected org.springframework.http.HttpStatusgetStatus(javax.servlet.http.HttpServletRequest request)protected booleangetTraceParameter(javax.servlet.http.HttpServletRequest request)protected org.springframework.web.servlet.ModelAndViewresolveErrorView(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.http.HttpStatus status, Map<String,Object> model)Resolve any specific error views.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 org.springframework.boot.autoconfigure.web.ErrorController
getErrorPath
构造器详细资料
AbstractErrorController
public AbstractErrorController(ErrorAttributes errorAttributes)
AbstractErrorController
public AbstractErrorController(ErrorAttributes errorAttributes, List<ErrorViewResolver> errorViewResolvers)
方法详细资料
getErrorAttributes
protected Map<String,Object> getErrorAttributes(javax.servlet.http.HttpServletRequest request, boolean includeStackTrace)
getTraceParameter
protected boolean getTraceParameter(javax.servlet.http.HttpServletRequest request)
getStatus
protected org.springframework.http.HttpStatus getStatus(javax.servlet.http.HttpServletRequest request)
resolveErrorView
protected org.springframework.web.servlet.ModelAndView resolveErrorView(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.http.HttpStatus status, Map<String,Object> model)
Resolve any specific error views. By default this method delegates toErrorViewResolvers.- 参数:
request- the requestresponse- the responsestatus- the HTTP statusmodel- the suggested model- 返回:
- a specific
ModelAndViewornullif the default should be used - 从以下版本开始:
- 1.4.0