SpringBoot问题集合

Whitelabel Error Page

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

Mon Jun 24 14:56:23 CST 2019

There was an unexpected error (type=Not Found, status=404).

No message available

 

解决方法:

  DEA目录结构的问题,Application启动类的位置不对.要将Application类放在最外侧,即包含所有子包 。而我的controller则放在了最外层的包里面。导致找不到页面。

移动控制层的包:

  把controller类移动进去,即可成功运行。

posted @ 2022-09-22 22:13  wiselee/  阅读(25)  评论(0编辑  收藏  举报