读书人

请问struts 2.0如何和spring 结合请

发布时间: 2012-01-05 22:36:54 作者: rapoo

请教struts 2.0怎么和spring 结合,请高手指点。
请教struts 2.0怎么和spring 结合,请高手指点。

[解决办法]
在STRUTS-CONFIG.XML中添加plug-in标签对(
<plug-in className="org.springframework.web.struts.ContextLoaderPlugIn" >
<set-property property="contextConfigLocation" value="/WEB-INF/applicationContext.xml"/>
</plug-in> ),在SPRING的配置文件(applicationContext.xml)中配置STRUTS中的PATH变量就可以了

读书人网 >Java相关

热点推荐