SpringBoot常见问题记录
SpringBoot启动后:
警告:Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package.
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: URL

原因:APP启动类位置不对
解决方案:应该创建出工作目录下,类似于com.jining
打开网页测试时:
This application has no explicit mapping for /error, so you are seeing this as a fallback.

本文详细解析了SpringBoot启动过程中常见的警告信息,包括@ComponentScan扫描默认包的问题及APP类放置不当导致的扫描失败。提供了具体的解决方案,帮助开发者快速定位并解决启动类位置问题。
7007

被折叠的 条评论
为什么被折叠?



