Spring boot 处理 error 的套路

参考官方文档: Spring boot 处理 error 的基本流程: Controller -> 发生错误 -> BasicErrorController -> 根据 @RequestMapping(produces) 判断调用 errorHtml 或者 error 方法 然后: errorHtml -> getErrorAttributes -> ErrorViewResolver -> 错误
相关文章
相关标签/搜索