Spring boot 處理 error 的套路

參考官方文檔: Spring boot 處理 error 的基本流程: Controller -> 發生錯誤 -> BasicErrorController -> 根據 @RequestMapping(produces) 判斷調用 errorHtml 或者 error 方法 然後: errorHtml -> getErrorAttributes -> ErrorViewResolver -> 錯誤
相關文章
相關標籤/搜索