1、This application has no explicit mapping for /error, so you are seeing this as a fallback.
入口类所在的位置不对,应位于所有子包的最外层
2、Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package.
入口类不能直接放在src/main/java目录下,必须在包内
时间: 2024-10-26 04:02:24