Chinaunix首页 | 论坛 | 博客
  • 博客访问: 648927
  • 博文数量: 632
  • 博客积分: 39960
  • 博客等级: 大将
  • 技术积分: 4975
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-16 18:20
文章分类

全部博文(632)

文章存档

2011年(1)

2008年(631)

我的朋友

分类:

2008-10-16 18:22:29

整合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) |
给主人留下些什么吧!~~