读取配置文件

来源:互联网 发布:js创建节点 编辑:程序博客网 时间:2024/05/18 19:44

String[]   path={"src/main/webapp/WEB-INF/exam-servlet.xml"}; //绝对路径,除了项目名称之外的所有

ApplicationContext context = new FileSystemXmlApplicationContext(path);