Springboot启动时出现:** WARNING ** : Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package :Application startup failed
当Springboot的入口类使用了@ComponentScan注解后,启动时默认会扫描入口类统计目录和子目录下bean,但要求被@ComponentScan注解的入口类不能使用default package,必须要自定义一个包名,否则就会出现上述错误。