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.
微軟準備淘汰 SHA-1
2.
Windows Server 2019 Update 2010,20H2
3.
Jmeter+Selenium結合使用(完整篇)
4.
windows服務基礎
5.
mysql 查看線程及kill線程
6.
DevExpresss LookUpEdit詳解
7.
GitLab簡單配置SSHKey與計算機建立連接
8.
桶排序(BucketSort)
9.
桶排序(BucketSort)
10.
C++ 桶排序(BucketSort)
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
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
>>更多相關文章<<