方法一:在类路径下寻找配置来实例化容器
1 ApplicationContext ctx = new ClassPath2 new String[]{"beans.
方法二:在文件系统路径下寻找配置文件来实例化容器
1 ApplicationContext ctx = new FileSystem2 new String[]{"d:\\beans.
Spring的配置文件可以指定多个,通过string数组传入
原标题:实例化spring容器
关键词:Spring