基於@ControllerAdvice註解的SpringBoot專案全域性異常處理
class) value 標識了要攔截的型別,Exception...
class) value 標識了要攔截的型別,Exception...
(只負責URL對映,並不執行,而是將結果告訴前端控制器)HandlerAdapter:處理器介面卡,它呼叫後端處理器中的方法,返回邏輯檢視 ModelAndView 物件...
* @param viewName the name of the error view* @param ex the exception that got thrown during handler execution* @return ...