类 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) 实例化. -
方法概要
从类继承的方法 org.springframework.boot.autoconfigure.web.servlet.error.AbstractErrorController
getBooleanParameter, getErrorAttributes, getErrorsParameter, getMessageParameter, getStatus, getTraceParameter, resolveErrorView
-
构造器详细资料
-
CustomerErrorController
public CustomerErrorController(org.springframework.boot.web.servlet.error.ErrorAttributes errorAttributes, List<org.springframework.boot.autoconfigure.web.servlet.error.ErrorViewResolver> errorViewResolvers) 实例化.- 参数:
errorAttributes- errorAttributeserrorViewResolvers- errorViewResolvers
-
-
方法详细资料
-
error
@ResponseBody @RequestMapping public net.guerlab.cloud.core.result.Result<Void> error(javax.servlet.http.HttpServletRequest request)
-