springboot警告以及问题解决:** WARNING ** : Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package.

问题:该警告解释为 :SpringBootApplication不能从代码的根目录启动

 

 

 

解决方式:放入一个包中即可解决问题

 

posted @ 2020-02-17 21:09  谢世林  阅读(572)  评论(0)    收藏  举报