springboot中搜索頁面出現404/This application has no explicit mapping for /error解決

一個坑: 我的目錄: 錯誤原因: 我寫了一個跳轉頁面的controller 意思是,只要我輸入mobile,就會在template下面找到mobile.html 解決方案: 此時我應該在搜索框輸入 localhost:8080/mobile 而不是xxx/mobile.html 如圖: 僅適用於部分情況。
相關文章
相關標籤/搜索