一.Apache Tomcat安装
1.在安装tomcat之前确保java jdk已经安装成功
2.安装Tomcat的安装包(如果是解压包, 可以直接解压你需要的目录)
3.tomocat默认端口是8080,可以在conf的server.xml中配置
二.使用idea部署
1.edit config添加tomcat服务器

点击+ 选择tomcat server-->local

2.在弹框中配置相关信息
填写name 删除before launch中的所有东西

点击Deployment 点击+ 添加artifacts

选择需要部署的exploded文件 选择后 删除before launch中的所有内容

配置好之后,启动服务器

点击启动后,启动成功,会显示如下图,并自动浏览器打开页面

自动打开地址
http://localhost:8080/ 访问web.xml中配置的默认页面地址xxxxxx
<welcome-file-list>
<welcome-file>xxxxx</welcome-file>
</welcome-file-list>
原文:http://www.cnblogs.com/qiqijiayousue/p/3574211.html