|
|
|
@ -78,7 +78,8 @@ public class ClassPathXmlApplicationContext extends AbstractXmlApplicationContex |
|
|
|
|
/** |
|
|
|
|
* Create a new ClassPathXmlApplicationContext, loading the definitions |
|
|
|
|
* from the given XML file and automatically refreshing the context. |
|
|
|
|
* @param configLocation resource location |
|
|
|
|
* 创建一个新的ClassPathXmlApplicationContext,从给定的XML文件加载定义并自动刷新上下文。 |
|
|
|
|
* @param configLocation resource location (资源位置) |
|
|
|
|
* @throws BeansException if context creation failed |
|
|
|
|
*/ |
|
|
|
|
public ClassPathXmlApplicationContext(String configLocation) throws BeansException { |
|
|
|
@ -126,6 +127,7 @@ public class ClassPathXmlApplicationContext extends AbstractXmlApplicationContex |
|
|
|
|
/** |
|
|
|
|
* Create a new ClassPathXmlApplicationContext with the given parent, |
|
|
|
|
* loading the definitions from the given XML files. |
|
|
|
|
* 使用给定的父级创建一个新的ClassPathXmlApplicationContext,从给定的XML文件加载定义。 |
|
|
|
|
* @param configLocations array of resource locations |
|
|
|
|
* @param refresh whether to automatically refresh the context, |
|
|
|
|
* loading all bean definitions and creating all singletons. |
|
|
|
|