SpringBoot问题集合

2022-12-23,

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类移动进去,即可成功运行。

SpringBoot问题集合的相关教程结束。

《SpringBoot问题集合.doc》

下载本文的Word格式文档,以方便收藏与打印。