首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > XML SOAP >

关于ClassPathXmlApplicationContext(Str[],AppContext)结构的应用场景

2012-11-06 
关于ClassPathXmlApplicationContext(Str[],AppContext)构造的应用场景?ClassPathXmlApplicationContext(S

关于ClassPathXmlApplicationContext(Str[],AppContext)构造的应用场景?
ClassPathXmlApplicationContext(String configLocation)

这个大家都知道是用来加载bean的配置文件,不用多说了:)关于ClassPathXmlApplicationContext(Str[],AppContext)结构的应用场景

关于ClassPathXmlApplicationContext(Str[],AppContext)结构的应用场景
但是
ClassPathXmlApplicationContext(String[] configLocations, ApplicationContext parent)

这个构造的作用是什么,应用场景是哪些?

想知道有parent时的应用场景是什么?与没有的区别是什么?

是为了避免bean的ID重名?还是为了构造树状结构的bean图?关于ClassPathXmlApplicationContext(Str[],AppContext)结构的应用场景 1 楼 jellyfish 2007-03-29   This is mainly for cases like ejb, noting that the ejb class loader is the parent classloader for web, so the ebj ac is a parent of web ac.

热点排行