类 ResultErrorController

  • 所有已实现的接口:
    org.springframework.boot.web.servlet.error.ErrorController

    public class ResultErrorController
    extends org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController
    异常响应控制器
    从以下版本开始:
    2020年9月15日
    作者:
    ylyue
    • 构造器概要

      构造器 
      构造器 说明
      ResultErrorController​(org.springframework.boot.web.servlet.error.ErrorAttributes errorAttributes, org.springframework.boot.autoconfigure.web.ErrorProperties errorProperties)  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      org.springframework.http.ResponseEntity<Map<String,​Object>> error​(javax.servlet.http.HttpServletRequest request)  
      • 从类继承的方法 org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController

        errorHtml, getErrorAttributeOptions, getErrorPath, getErrorProperties, isIncludeBindingErrors, isIncludeMessage, isIncludeStackTrace, mediaTypeNotAcceptable
      • 从类继承的方法 org.springframework.boot.autoconfigure.web.servlet.error.AbstractErrorController

        getBooleanParameter, getErrorAttributes, getErrorAttributes, getErrorsParameter, getMessageParameter, getStatus, getTraceParameter, resolveErrorView
    • 构造器详细资料

      • ResultErrorController

        public ResultErrorController​(org.springframework.boot.web.servlet.error.ErrorAttributes errorAttributes,
                                     org.springframework.boot.autoconfigure.web.ErrorProperties errorProperties)
    • 方法详细资料

      • error

        public org.springframework.http.ResponseEntity<Map<String,​Object>> error​(javax.servlet.http.HttpServletRequest request)
        覆盖:
        error 在类中 org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController