`
mazhen20073492
  • 浏览: 25021 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

使用 myeclipse10整合S2SH框架

    博客分类:
  • web
阅读更多

我使用的是myeclipse 10.0 整合的

一\添加spring支持

1.项目-->右键-->myeclipse-->选择Add spring Ca....

选择如图.外加 下面的spring 3.0 web libaries

下一步

完成:)

二\.添加hibernate 支持

项目-->右键-->myeclipse-->选择Add hibernate Ca....

还有下面的spring j2ee包和spring web包

下一步:

选择第二项:"

下一步:

下一步:这步我就不教怎么配置了.可以搜索去..很多

下一步:

下一步:

点击keep...

三:添加 struts2支持:

1.项目-->右键-->myeclipse-->选择Add struts Ca....

下一步只选择第一个包就行.需要其他包的时候去myeclipse目录下搜索就行.就像一会需要的一个 struts2-spring-pluginXXX包一样.就可以到myeclipse目录下搜索

点击结束即可:

下面让struts2和spring整合起来:

加入 struts2-spring-pluginXX包.到myeclipse下搜索就能找到

在web.xml中filter 之前加入加入:

<listener>
              <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>

 

完成了

记得在struts.xml中加入

<constant name="objectFactory" value="spring"></constant>

 

转:http://blog.csdn.net/joker_zhou/article/details/7487756

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics