整合Spring,换句话说,也就是让spring的IOC功能为我们的struts action注入逻辑组件
首先需要加载struts2-spring-plugin-2.0.6.jar这个包,这个是关键,他可以帮我们把struts2和spring仅仅整合在一起
首先是web.xml
xmlns:xsi=""
xsi:schemaLocation=" /web-app_2_4.xsd">
contextConfigLocation
/WEB-INF/bean.xml
org.springframework.web.context.ContextLoaderListener
struts2
org.apache.struts2.dispatcher.FilterDispatcher
struts2
/*
aaa
org.apache.struts2.dispatcher.ActionContextCleanUp
aaa
/*
【责编:Chuan】
--------------------next---------------------
阅读(348) | 评论(0) | 转发(0) |