首页 > 代码库 > SpringBoot问题总结

SpringBoot问题总结

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目录下,必须在包内

SpringBoot问题总结