ImageVerifierCode 换一换
格式:DOCX , 页数:15 ,大小:1.10MB ,
资源ID:10273170      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bingdoc.com/d-10273170.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(ssh框架搭建myeclipse10.docx)为本站会员(b****3)主动上传,冰点文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰点文库(发送邮件至service@bingdoc.com或直接QQ联系客服),我们立即给予删除!

ssh框架搭建myeclipse10.docx

1、ssh框架搭建myeclipse10Myeclipse10下搭建SSH框架(图解)Struts2.1+Spring3.0+Hibernate3.32012-04-11 18:38:28|分类:Web Development|标签:myeclipsesshstrutsspringhibernate|字号订阅一、建立一个Web Project点击FileNewWeb Project 新建一个Web工程。在Project Name中输入项目名ssh,在J2EE Specification Level中选择Java EE 6.0,然后点击Finish。二、搭建Spring3.0左边显示的是生成以后的W

2、eb Project 目录结构。选择工程名(ssh),然后添加Spring。MyEclipseProject CapabilitiesAdd Spring CapabilitiesSpring version选择Spring 3.0按图选择相应的包Spring 3.0 AOP,Spring 3.0 Core,Spring 3.0 Persistence Core,Spring 3.0 Persistence JDBC,Spring 3.0 Web;JAR Library Installation里选择Copy到lib目录(避免发布到Tomcat出问题)。生成applicationContext

3、.xml文件,Folder中选择WebRoot/WEB-INF,然后点击Finish。三、搭建Hibernate3.3左边显示的是生成Spring以后的目录结构(文件夹上面会有个S)。选择工程名(ssh),然后添加Hibernate。MyEclipseProject CapabilitiesAdd Hibernate CapabilitiesHibernate Specification选择Hibernate 3.3按图选择相应的包Hibernate 3.3 Annotations & Entity Manager,Hibernate 3.3 Core;JAR Library Installa

4、tion里选择Copy到lib目录(避免发布到Tomcat出问题)。这里统一由Spring configuration file管理Hibernate。选择继承的Spring配置文件(WebRoot/WEB-INF/applicationContext.xml),SessionFactory Id默认。这里配置数据库连接,这里不打勾Specify Spring DataSource connection details,点击Next。如果要建可以在DB Browser(WindowsShow ViewOtherMyEclipse DatabaseDB Browser)里面新建。不打勾Creat

5、e SessionFactory class,点击Finish。四、搭建Struts2.1左边显示的是生成Hibernate以后的目录结构,这里用Spring管理所以看不到hibernate.cfg.xml文件了。选择工程名(ssh),然后添加Struts。MyEclipseProject CapabilitiesAdd Struts CapabilitiesStruts specification里选择Struts2.1,Struts 2 filter name默认,点击Next。加入Struts核心包,点击Finish。到此SSH环境就已经搭建好了。下面开启服务看看对不对?五、启动Tomc

6、at服务器,看搭建成功没?在web.xml里面加个监听Spring。org.springframework.web.context.ContextLoaderListener在Servers里面点击Add Deployments。这个是MyEclipse自带的TOMCAT6.0.13。把工程发布到Tomcat上。点击Run Server启动。Console控制台里面启动完成,Spring也启动起来了。打开IE输入:http:/localhost:8080/ssh 正常显示环境已经没有问题,在此框架基础上可以扩展了。生成之后所用到的包WebRoot/WEB-INF/libantlr-2.7.6.

7、jarcglib-2.2.jar.mchange.v2.c3p0-0.9.1.2.jar.sf.cglib-2.2.0.jarcom.springsource.org.aopalliance-1.0.0.jarmons.fileupload-1.2.0.jarmons.httpclient-3.1.0.jarmons.lang-2.4.0.jarmons.logging-1.1.1.jarmons.pool-1.5.3.jarcom.springsource.org.apache.log4j-1.2.15.jarcom.springsource.org.aspectj.weaver-1.6.8

8、.RELEASE.jarcom.springsource.org.codehaus.jackson.mapper-1.0.0.jarcommons-collections-3.1.jarcommons-dbcp.jardom4j-1.6.1.jarehcache-1.2.3.jarejb3-persistence.jarhibernate-annotations.jarhibernate-commons-annotations.jarhibernate-entitymanager.jarhibernate-validator.jarhibernate3.jarjavassist-3.9.0.G

9、A.jarjotm.jarjta-1.1.jarlog4j-1.2.14.jarmysql-connector-java-5.1.18-bin.jarname.txtorg.springframework.aop-3.0.5.RELEASE.jarorg.springframework.asm-3.0.5.RELEASE.jarorg.springframework.aspects-3.0.5.RELEASE.jarorg.springframework.beans-3.0.5.RELEASE.jarorg.springframework.context-3.0.5.RELEASE.jaror

10、g.springframework.core-3.0.5.RELEASE.jarorg.springframework.expression-3.0.5.RELEASE.jarorg.springframework.instrument-3.0.5.RELEASE.jarorg.springframework.instrument.tomcat-3.0.5.RELEASE.jarorg.springframework.jdbc-3.0.5.RELEASE.jarorg.springframework.orm-3.0.5.RELEASE.jarorg.springframework.oxm-3.

11、0.5.RELEASE.jarorg.springframework.transaction-3.0.5.RELEASE.jarorg.springframework.web-3.0.5.RELEASE.jarorg.springframework.web.portlet-3.0.5.RELEASE.jarorg.springframework.web.servlet-3.0.5.RELEASE.jarorg.springframework.web.struts-3.0.5.RELEASE.jarpersistence.jarslf4j-api-1.5.8.jarslf4j-log4j12-1

12、.5.8.jarxapool.jarStruts 2.1 Core Librariesantlr-2.7.2.jaraopalliance-1.0.jarclassworlds-1.1.jarcommons-beanutils-1.7.0.jarcommons-chain-1.2.jarcommons-collections-3.2.jarcommons-digester-2.0.jarcommons-fileupload-1.2.1.jarcommons-io-1.3.2.jarcommons-lang-2.3.jarcommons-logging-1.0.4.jarcommons-logging-api-1.1.jarcommons-validator-1.3.1.jarfreemarker-2.3.16.jarjavassist-3.7.ga.jarjson-lib-2.1-jdk15.jarname.txtognl-3.0.jaroro-2.0.8.jarsslext-1.2-0.jarstruts2-convention-plugin-2.2.1.jarstruts2-core-2.2.1.jarstruts2-embeddedjsp-plugin-2.2.1.jarstruts2-json-plugin-2.2.1.jarxwork-core-2.2.1.jar

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2