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

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

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

猜你喜欢

转载自www.cnblogs.com/xieshilin/p/12323664.html