从WebRoot中读取spring配置文件


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

//	BeanName theBean = (BeanName) ctx.getBean("theBean");

猜你喜欢

转载自xiongjiajia.iteye.com/blog/1568058