![](http://dl.iteye.com/upload/picture/pic/114776/7cb30028-51c2-3b7d-8d09-5fde9acf155a.jpg)
ApplicationContext ctx = new FileSystemXmlApplicationContext( "/WebRoot/spring/applicationContext.xml");
// BeanName theBean = (BeanName) ctx.getBean("theBean");
ApplicationContext ctx = new FileSystemXmlApplicationContext( "/WebRoot/spring/applicationContext.xml");
// BeanName theBean = (BeanName) ctx.getBean("theBean");