Class DefaultErrorViewResolver

java.lang.Object
org.springframework.boot.autoconfigure.web.servlet.error.DefaultErrorViewResolver
All Implemented Interfaces:
ErrorViewResolver, Ordered

public class DefaultErrorViewResolver extends Object implements ErrorViewResolver, Ordered
Default ErrorViewResolver implementation that attempts to resolve error views using well known conventions. Will search for templates and static assets under '/error' using the status code and the status series.

For example, an HTTP 404 will search (in the specific order):

  • '/<templates>/error/404.<ext>'
  • '/<static>/error/404.html'
  • '/<templates>/error/4xx.<ext>'
  • '/<static>/error/4xx.html'
Since:
1.4.0
Author:
Phillip Webb, Andy Wilkinson