Spring Boot 警告: ApplicationContext is unlikely to ...... the default package
在运行Spring Boot项目的时候遇到警告报错,项目无法运行:
** WARNING ** : Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package.
其实原因是Spring Boot的启动类不能够放在组件的默认包当中,也就是不能够放在java文件夹的根目录下,所以另外新建一个包,然后把原文件夹下的类放入该包中就行了