參考博客: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中也可找到


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