springboot異常處理

  前言 在springboot項目中,一般我們訪問不存在的資源或內部服務報錯,會報下面的異常頁面,這是springboot爲我們定製的異常頁面, 404 定義一個項目,加入依賴: <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <arti
相關文章
相關標籤/搜索