spring配置文件获取方式
1、在src下(class):??
ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");//spring 上下文?2、在/WebRoot/WEB-INF/下(带路径的)
ApplicationContext ctx = new FileSystemXmlApplicationContext("/WebRoot/WEB-INF/applicationContext.xml");//spring 上下文?