spring boot頁面報錯-Whitelabel Error Page


參考博客:https://blog.csdn.net/Leo_libin/article/details/84101663

訪問controller地址時,顯示錯誤頁面,報錯如下:

1 Whitelabel Error Page
2 This application has no explicit mapping for /error, so you are seeing this as a fallback.
3 
4 Tue Aug 25 15:24:46 CST 2020
5 There was an unexpected error (type=Not Found, status=404).

將啟動頁放在根目錄下即可,根目錄指的是在創建項目時Group所指定的目錄

 

 在pom.xml中也可找到

 

 

 

 重啟項目,頁面就可以訪問成功了。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM