** WARNING ** : Your ApplicationContext is unlikely to start due to a @ComponentScan of the default

现象:

** WARNING ** : Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package.

原因:

直接在src下运行springboot主函数

解决办法:

在src下新建一个package,在package下运行springboot主函数

你可能感兴趣的:(bug,springboot,springboot,bug)