在Struts2+Hibernate+Spring整合中,我写了一个Spring对Hibernate的测试类.但我想用Spring注入SessionFactory.我在使用ApplicationContext context=new ClassPathXmlApplicationContext("/WebRoot/WEB-INF/applicationContext.xml");出错了.
原因是找不到WEB-INF下面的applicationContext.xml,而我的applicationContext.xml是放置在WebRoot/WEB-INF下面的.请问我
怎样写路径才能让ApplicationContext取到/WebRoot/WEB-INF/applicationContext.xml.