ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
HService h = (HService) ctx.getBean("service");
在myeclipse中执行单步调试 ,在运行到 ctx.getBean("service"); 这件按 f6
进入到AbstractApplicationContext 类 的 protected void destroyBeans() {
getBeanFactory().destroySingletons();
} 中 方法 。。
求解 为什么进入的是destroyBeans方法,而不是getBean方法???