SpringBoot中根據響應狀態碼解析對應頁面

SpringBoot中根據響應狀態碼解析對應頁面 404頁面: 路徑: resource>>static >>error>>404.html 對於5xx頁面 路徑: resource>>templates >>error>>5xx.html 404頁面也可以放置在templates文件下,404和5xx存放位置區別是static下存放的是靜態頁面,templates下存放的是可以動態變化的頁面
相關文章
相關標籤/搜索