接口 ErrorViewResolver
- 所有已知实现类:
DefaultErrorViewResolver
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
@FunctionalInterface public interface ErrorViewResolver
Interface that can be implemented by beans that resolve error views.- 从以下版本开始:
- 1.4.0
方法详细资料
resolveErrorView
org.springframework.web.servlet.ModelAndView resolveErrorView(javax.servlet.http.HttpServletRequest request, org.springframework.http.HttpStatus status, Map<String,Object> model)
Resolve an error view for the specified details.- 参数:
request
- the source requeststatus
- the http status of the errormodel
- the suggested model to be used with the view- 返回:
- a resolved
ModelAndView
ornull