JavaShuo
欄目
標籤
IDEA中Spring Boot項目報錯:There was an unexpected error (type=Not Found, status=404)
時間 2021-08-15
標籤
idea
spring boot
欄目
Eclipse
简体版
原文
原文鏈接
【版權所有,文章允許轉載,但須以鏈接方式註明源地址,否則追究法律責任】 報錯信息 報這個錯的原因是SpringBoot主配置類(@SpringBootApplication註解標註的類)的所在包和你的Controller類不在同一個包下,如圖: 原因是主配置類所在包及下面所有子包裏面的所有組件都會自動幫你掃描到Spring容器中,所以你不放在同一包下他就不會去掃描,那自然就報404了!
>>阅读原文<<
相關文章
1.
There was an unexpected error (type=Not Found, status=404).
2.
spring boot 返回json There was an unexpected error (type=Not Found, status=404).
3.
Whitelabel Error Page There was an unexpected error (type=Not Found, status=404)
4.
There was an unexpected error (type=Not Found, status=404). /WEB-INF/view/index.jsp)
5.
SpringBoot 啓動,There was an unexpected error (type=Not Found, status=404).
6.
There was an unexpected error (type=Not Found, status=404). No message available
7.
thymeleaf 404報錯:There was anunexpected error (type=Not Found, status=404).
8.
瀏覽器請求spring-boot模塊項目報:There was an unexpected error (type=Not Found, status=404).
9.
Whitelabel Error PageThere was an unexpected error (type=Not Found, status=404)問題解決
10.
【晨星項目搭建問題】There was an unexpected error (type=Not Found, status=404). /WEB-INF/pages/frontpages/inde
更多相關文章...
•
Mozilla 項目
-
瀏覽器信息
•
Thymeleaf項目實踐
-
Thymeleaf 教程
•
RxJava操作符(五)Error Handling
•
Spring Cloud 微服務實戰(三) - 服務註冊與發現
相關標籤/搜索
項目報錯
status
unexpected
boot+idea
error
type
錯報
報錯
boot&spring
Spring
Eclipse
紅包項目實戰
Spring教程
PHP教程
IDEA
spring cloud
註冊中心
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
springboot在一個項目中啓動多個核心啓動類
2.
Spring Boot日誌-3 ------>SLF4J與別的框架整合
3.
SpringMVC-Maven(一)
4.
idea全局設置
5.
將word選擇題轉換成Excel
6.
myeclipse工程中library 和 web-inf下lib的區別
7.
Java入門——第一個Hello Word
8.
在chrome安裝vue devtools(以及安裝過程中出現的錯誤)
9.
Jacob線上部署及多項目部署問題處理
10.
1.初識nginx
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
1.
There was an unexpected error (type=Not Found, status=404).
2.
spring boot 返回json There was an unexpected error (type=Not Found, status=404).
3.
Whitelabel Error Page There was an unexpected error (type=Not Found, status=404)
4.
There was an unexpected error (type=Not Found, status=404). /WEB-INF/view/index.jsp)
5.
SpringBoot 啓動,There was an unexpected error (type=Not Found, status=404).
6.
There was an unexpected error (type=Not Found, status=404). No message available
7.
thymeleaf 404報錯:There was anunexpected error (type=Not Found, status=404).
8.
瀏覽器請求spring-boot模塊項目報:There was an unexpected error (type=Not Found, status=404).
9.
Whitelabel Error PageThere was an unexpected error (type=Not Found, status=404)問題解決
10.
【晨星項目搭建問題】There was an unexpected error (type=Not Found, status=404). /WEB-INF/pages/frontpages/inde
>>更多相關文章<<