不知道你是什么架构,
代码的话
ApplicationContext ctx = new ClassPathXmlApplicationContext("conf/appContext.xml");Struts+Spring的话,struts-config.xml中:
<plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
<set-property property="contextConfigLocation" value="WEB-INF/applicationContext.xml" />
</plug-in>
代码的话
ApplicationContext ctx = new ClassPathXmlApplicationContext("conf/appContext.xml");Struts+Spring的话,struts-config.xml中:
<plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
<set-property property="contextConfigLocation" value="WEB-INF/applicationContext.xml" />
</plug-in>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货