类 CustomerErrorController

java.lang.Object
org.springframework.boot.autoconfigure.web.servlet.error.AbstractErrorController
net.guerlab.cloud.web.webmvc.autoconfigure.CustomerErrorController
所有已实现的接口:
org.springframework.boot.web.servlet.error.ErrorController

@Controller @RequestMapping("${server.error.path:${error.path:/error}}") public class CustomerErrorController extends org.springframework.boot.autoconfigure.web.servlet.error.AbstractErrorController
自定义异常控制器.
作者:
guer
  • 构造器概要

    构造器
    构造器
    说明
    CustomerErrorController(org.springframework.boot.web.servlet.error.ErrorAttributes errorAttributes, List<org.springframework.boot.autoconfigure.web.servlet.error.ErrorViewResolver> errorViewResolvers)
    实例化.
  • 方法概要

    修饰符和类型
    方法
    说明
    net.guerlab.cloud.core.result.Result<Void>
    error(jakarta.servlet.http.HttpServletRequest request)
     

    从类继承的方法 org.springframework.boot.autoconfigure.web.servlet.error.AbstractErrorController

    getBooleanParameter, getErrorAttributes, getErrorsParameter, getMessageParameter, getStatus, getTraceParameter, resolveErrorView

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • CustomerErrorController

      public CustomerErrorController(org.springframework.boot.web.servlet.error.ErrorAttributes errorAttributes, List<org.springframework.boot.autoconfigure.web.servlet.error.ErrorViewResolver> errorViewResolvers)
      实例化.
      参数:
      errorAttributes - errorAttributes
      errorViewResolvers - errorViewResolvers
  • 方法详细资料

    • error

      @ResponseBody @RequestMapping public net.guerlab.cloud.core.result.Result<Void> error(jakarta.servlet.http.HttpServletRequest request)