ApplicationContext 获得的几种方式
//容器中获得
ApplicationContext ac = WebApplicationContextUtils.getWebApplicationContext(servletContext);
//文件存放绝对路径
ApplicationContext ac = new FileSystemXmlApplicationContext(files);
//工程的classpath;
ApplicationContext ac = new FileSystemXmlApplicationContext(files);