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

Posted 时光-ing

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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.
Tue Aug 30 01:11:51 CST 2022
There was an unexpected error (type=Not Found, status=404).

出现这种错误的原因有很多种,我出现的错误如下:

解决办法:
在pom.xml中添加如下内容:

<resource>
    <directory>src/main/resources</directory>
</resource>

运行成功如下所示:

以上是关于This application has no explicit mapping for /error, so you are seeing this as a fallback.的主要内容,如果未能解决你的问题,请参考以下文章

解决Springboot:This application has no explicit mapping for /error

springboot:This application has no explicit mapping for /erro

SpringBoot启动报错This application has no explicit mapping for /error.....

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

1. SpringBoot启动后,报异常:This application has no explicit mapping for /error, so you are seeing this as

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