浏览 2319 次
|
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
|
|
|---|---|
| 作者 | 正文 |
|
时间:2007-03-28 关键字: Spring
ClassPathXmlApplicationContext(String configLocation) 这个大家都知道是用来加载bean的配置文件,不用多说了:) ![]() ![]() 但是 ClassPathXmlApplicationContext(String[] configLocations, ApplicationContext parent) 这个构造的作用是什么,应用场景是哪些? 想知道有parent时的应用场景是什么?与没有的区别是什么? 是为了避免bean的ID重名?还是为了构造树状结构的bean图?
声明:JavaEye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
|
|
| 返回顶楼 | |
|
时间: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.
|
|
| 返回顶楼 | |






