您的位置:首页 > 运维架构 > Tomcat

tomcat 部署ecclipse web(servlet)项目

2012-05-11 11:09 246 查看
原文连接

只需把build/classes/下的文件拷贝到项目目录中的WebContent/WEB-INF/lib下 在复制WebContent整个文件夹到tomcat中的webapps即可。start tomcat,浏览器 输入localhost:8080/WebContent/网页名或servlet名即可访问

注:通过修改WebContent的文件名来与其他项目区分

工具:eclipse 3.6 tomcat7.0.2

个人实践:

在eclipse:

新建工程 new > project > 列表中选中Web > Dynamic Web Project (注:工程默认目录要重新设置如 /home/stedy/gy/backup/selfstudy/web/apache-tomcat-7.0.27/webapps/compal/sm)> Target runtime中选中Apache Tomcat

新建jsp/html 单击工程名右击 new > others > Web > jsp /jsp tag/html.....

注:WebContent为工程根目录
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: