AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(ExtConfig.class);
public AnnotationConfigApplicationContext(Class<?>... annotatedClasses) {
this();
register(annotatedClasses);
refresh();
}
記錄一下自己查看創(chuàng)建容器源碼的過(guò)程患久,整個(gè)refresh();
方法每一步整理為一篇文章,如果有錯(cuò)誤歡迎指證啦~~