Whitelabel Error Page This application has no explicit mapping for /error

Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Mon Aug 31 14:25:34 CST 2020
There was an unexpected error (type=Not Found, status=404).
在这里插入图片描述

原因及解决:

报错原因是SpringBoot的目录结构不对,修改目录结构。
在这里插入图片描述
在这里插入图片描述


版权声明:本文为weixin_44138481原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。