现象
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Mon Dec 14 09:34:41 CST 2020
There was an unexpected error (type=Not Found, status=404).
原因
Springboot项目的application启动类的位置不对,应该与controller位于同一个包,或者使用application类中,指定controller包的位置,即增加@SpringBootApplication(scanBasePackages=“controller package”)。
解决方案
详见渴望飞的鱼的的文章:异常:This application has no explicit mapping for /error, so you are seeing this as a fallback解决方法