目录
Spring源码的版本: 5.0.X
## Spring的启动方式大致可分为以下三种, 第二种和第三种方式基本没人使用了, 以下重点介绍第一种
public class SpringTest {
public static void main(String[] args) {
//第一种方式: 使用注解定义扫描路径,在AppConfig配置类中使用@ComponentSacn注解定义扫描路径
AnnotationConfigApplicationContext context