This application has no explicit mapping for /error, so you are seeing this as a fallback.

这里写图片描述
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Fri Aug 04 17:48:02 CST 2017
There was an unexpected error (type=Not Found, status=404).
No message available
解决方法:
出现这个问题原因:
一、检查SpringbootApplication的位置是否直接在groupId的包下面
比如你的groupId是com.baidu。那么SpringbootApplication放在\src\main\java\com\baidu\目录下
二、如果第一步并且使用的是thymeleaf模板引擎,那么再检查有没有添加依赖

<dependency>
   <groupId>org.springframework.boot</groupId>
   <artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
  • 8
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 7
    评论
这个错误提示"This application has no explicit mapping for /error, so you are seeing this as a fallback."表示应用程序没有对"/error"路径进行显式的映射,所以你才看到这个错误。解决这个问题的方法有两种。首先,你需要检查配置文件application是否与你的项目文件在同一级目录下。其次,你需要确保控制该页面的controller和控制页面跳转的controller的@RequestMapping后面的地址是否与该页面一致。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [报错:this application has no explicit mapping for /error, so you are seeing this as a fallback.](https://blog.csdn.net/caihongfengzhu/article/details/130165404)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"] - *2* *3* [报错This application has no explicit mapping for /error, so you are seeing this as a fallback.](https://blog.csdn.net/a1782519342/article/details/124749723)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值