类 AppErrorPageRegistrar

  • 所有已实现的接口:
    org.springframework.boot.web.server.ErrorPageRegistrar

    public class AppErrorPageRegistrar
    extends Object
    implements org.springframework.boot.web.server.ErrorPageRegistrar
    ResourceHttpRequestHandler返回值: 当status为400时 404.html 当status为500时 500.html 由org.apache.catalina.core.StandardHostValve#status方法找到errorPage渲染 如果未配置则forward到/error
    • 构造器详细资料

      • AppErrorPageRegistrar

        public AppErrorPageRegistrar​(org.springframework.boot.autoconfigure.web.ServerProperties properties,
                                     org.springframework.boot.autoconfigure.web.servlet.DispatcherServletPath dispatcherServletPath)
    • 方法详细资料

      • registerErrorPages

        public void registerErrorPages​(org.springframework.boot.web.server.ErrorPageRegistry errorPageRegistry)
        指定者:
        registerErrorPages 在接口中 org.springframework.boot.web.server.ErrorPageRegistrar