Spring-boot 启动时发生警告

     Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package. 如下图所示。

Spring-boot 启动错误

    解决:把注解@SpringBootApplication的类  放到包里面就可以了,不能裸建个类。



下图为spring官方文档中的记录

Spring-boot 启动错误

下面为翻译

Spring-boot 启动错误




相关文章: