Springboot启动后报错【This application has no explicit mapping for /error, so you are seeing this as a fallback····】

时间:2023-03-08 21:49:34

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

Wed Dec 14 16:35:25 CST 2016
There was an unexpected error (type=Not Found, status=404).
No message available
spring-boot会自动加载启动类所在包下及其子包下的所有组件.
所以springboot启动类所在包的路径要在最外层,或者根层下