用 springboot 搭一个小应用 报错:
Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package
原因很简单 :
工程的启动类(类名通常叫 Application) 文件不能直接放在 main/java 路径下,要再新建一个 package 把他放进去。