从WebRoot中读取spring配置文件

ApplicationContext ctx = new FileSystemXmlApplicationContext(
				"/WebRoot/spring/applicationContext.xml");
//	BeanName theBean = (BeanName) ctx.getBean("theBean");

相关推荐