错误记录:This application has no explicit mapping for /error, so you are seeing this as a fallback.

Springboot startup class location problem

question

insert image description here

reason

The location of the Application startup class is wrong. The Application class should be placed on the outermost side and all subpackages should be included
Reason: spring-boot will automatically load all components under the package where the startup class is located and its subpackages.

Guess you like

Origin blog.csdn.net/weixin_51229662/article/details/129168131