首页 > TAG信息列表 > getErrorAttributes
DefaultErrorAttributes 继承ErrorAttributes重写getErrorAttributes 自定义异常信息
@Componentpublic class Error extends DefaultErrorAttributes{ @Override public Map<String, Object> getErrorAttributes(WebRequest webRequest, ErrorAttributeOptions options) { Map<String,Object> map =super.getErrorAttributes(web