分享

tomcat+eclipse web应用开发环境配置

pig2 发表于 2014-7-25 19:04:15 [显示全部楼层] 只看大图 回帖奖励 阅读模式 关闭右栏 0 7669

问题导读:
1.如何配置tomcat插件?
2.如何创建web应用?
3.如何发布web应用?






1 下载安装tomcat
    地址:http://tomcat.apache.org/download-60.cgi
    windows32位系统下载:apache-tomcat-6.0.35-windows-x86.zip
    解压放到指定目录就可以,无需安装。

2 下载安装eclipse
    地址:http://www.eclipse.org/downloads/
    file:///C:/Documents%20and%20Settings/Robin/Local%20Settings/Application%20Data/youdao/ynote/images/666545AD6FCE4784B744CF9027076517/clipboard.png
1.png

    下载eclipse-jee-indigo-SR1-win32.zip
    解压放到指定目录就可以,无需安装。

3 下载tomcat插件
    可以搜索tomcatPluginV321.zip
    下载后解压放到eclipse安装目录的plugins目录下
    启动eclipse就可以看到下图所示的按钮    file:///C:/Documents%20and%20Settings/Robin/Local%20Settings/Application%20Data/youdao/ynote/images/871512242E5F42188F60BF0159478900/clipboard.png
2.png


4 配置tomcat
    window-->Preferences-->Tomcat
    设置tomcat的版本和安装目录    file:///C:/Documents%20and%20Settings/Robin/Local%20Settings/Application%20Data/youdao/ynote/images/FDAE328B48A745BFBF1766DF12BF158B/clipboard.png
3.png

    设置完成后就可以在eclipse里面直接启动或关闭tomcat服务了。    file:///C:/Documents%20and%20Settings/Robin/Local%20Settings/Application%20Data/youdao/ynote/images/09CEFB732D664625A38F6CC915A5E050/clipboard.png
4.png


5 配置Server runtime environments
    window --> Preferences --> Server --> Runtime Environments
    配置很简单,点击add按钮,选择添加就可以了。如下图    file:///C:/Documents%20and%20Settings/Robin/Local%20Settings/Application%20Data/youdao/ynote/images/68BE2BB9C4584C54BE068A6DD355DB8B/clipboard.png
5.png


6 创建Web应用    file:///C:/Documents%20and%20Settings/Robin/Local%20Settings/Application%20Data/youdao/ynote/images/AFB4F7C805B44D988EF285A4D2C28429/clipboard.png
6.png

    创建一个Dynamic Web Project
    在创建的项目的WebContent目录下创建一个index.jsp文件。如下图所示    file:///C:/Documents%20and%20Settings/Robin/Local%20Settings/Application%20Data/youdao/ynote/images/159761EDDBAA45ACA09D38CA3659EAC0/clipboard.png
7.png


7 发布Web应用
    右键单击项目 选择Run As --> Run on Server 点击finish完成发布    file:///C:/Documents%20and%20Settings/Robin/Local%20Settings/Application%20Data/youdao/ynote/images/82C9D8C73E9A401CBE72D73363A0374A/clipboard.png
8.png

    点击finish完成发布工作,发布后在Eclipse中会自动打开发布的项目

    以上就是通过Eclipse和Tomcat发布web应用的全过程。



没找到任何评论,期待你打破沉寂

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条