springboot警告:ApplicationContext is unlikely to start due to a @ComponentScan of the default package
警告为
** WARNING ** : Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package.
解决方法
该类不能从组件的默认包启动,给他建立一个包
// 一般发出这个警告的原因是你把启动类直接放在的src目录下面。
// 你需要在src目录下面再建一个包,把启动类放到新建包下面。