摘要:
使用springApplicationContext context = new FileSystemXmlApplicationContext("src/applicationContext.xml");IDISK idisk = (IDISK)context.getBean("disk");//根据配置文件的内容实例化对象并返回配置文件scope="prototype"取消单态,延迟加载只针对单态的bean适用,非单态的bean本来就是“延迟加载”<bean id="dbreader" class=&qu 阅读全文
posted @ 2012-03-24 18:41
YH_W
阅读(218)
评论(0)
推荐(0)

浙公网安备 33010602011771号