路径问题 ApplicationContext act=new FileSystemXmlApplicationContext("/WebRoot/WEB-INF/applicationContext.xml"); 也可以把配置文件复制到src目录下 ApplicationContext act=new FileSystemXmlApplicationContext("/src/applicationContext...