ssh框架搭建(spring完全管理hibernate)

ssh框架搭建(spring完全管理hibernate)

ID:14665544

大小:51.50 KB

页数:16页

时间:2018-07-29

ssh框架搭建(spring完全管理hibernate)_第1页
ssh框架搭建(spring完全管理hibernate)_第2页
ssh框架搭建(spring完全管理hibernate)_第3页
ssh框架搭建(spring完全管理hibernate)_第4页
ssh框架搭建(spring完全管理hibernate)_第5页
资源描述:

《ssh框架搭建(spring完全管理hibernate)》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、ssh框架搭建(Spring完全管理hibernate)了解<熟悉<掌握<熟练6281256336在搭建完成大体的mvc后开始搭建ssh框架1struts2框架a添加strtus2类库commons-fileupload-1.2.1.jarcommons-io-1.4.jarfreemarker-2.3.15.jarognl-2.7.3.jarstruts2-core-2.1.8.jarstruts2-json-plugin-2.1.8.jarxwork-core-2.1.6.jarb在web.xml中配置strut

2、s2的filterstruts2org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilterstruts2/*

3、ttern>////*/dBaseActionextendsActionSupportimplementsSessionAware,RequestAwaree其他Actionf配置struts.xml//开发完成之后要改回成false

4、name="struts.i18n.reload"value="true"/>如果有多个struts-*.xml,可以在struts.xml中通过g在web.xml中添加struts的配置信息h测试,完成一次跳转okstruts配置完成2s

5、trtus2+springa添加spring类库junit-4.4.jar//junit类库spring.jar//spring核心类库//scehma标签类库aspectjrt.jaraspectjweaver.jarstruts2-spring-plugin-2.2.1.jar//让struts2支持springioc的类库b添加log4j类库commons-logging.jarlog4j-1.2.15.jarlog4j.properties文件该文件必须放到src目录下c添加springapplication

6、Context.xml配置文件e在strtus.xml文件中配置常量让spring管理struts2f在applicationContext.xml中配置biz,dao层的beanf在spring中配置action1

7、s="com.tarena.web.action.main.DoMainAction">2修改struts.xml中的action的class为applicationContext.xml中的actionbean的id3利用属性注入完成各层次间的关系建立action--->biz--->daof在web.xml文件中配置spring监听让服务器接受到httpRequest后立即实例化actionorg.springframework.web.context.ContextLoaderListener

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。