spring容器创建
2020-01-09 本文已影响0人
steamed_bun
AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(ExtConfig.class);
public AnnotationConfigApplicationContext(Class<?>... annotatedClasses) {
this();
register(annotatedClasses);
refresh();
}
记录一下自己查看创建容器源码的过程,整个refresh();方法每一步整理为一篇文章,如果有错误欢迎指证啦~~