** WARNING ** : Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package.
Failed to parse configuration class [Application]; nested exception is java.io.FileNotFoundException: class path resource [org/springframework/social/config/annotation/SocialConfigurerAdapter.class] cannot be opened because it does not exist
嗯,对,上面说不能启动了呢!
出现了警告,说 ApplicationContext 不能从默认的包下面启动!
这里小小的记忆一下:
@SpringBootApplication如果这个注解后面不指定扫哪些包,它默认的扫包范围是当前包,及其以下
注意入口类(SpringBootApplication)在项目结构中所在位置:
SpringBootApplication启动类不能直接放在java文件夹下