IDEA of Mac 配置tomcat

前提:已下载安装tomcat,tomcat官网

1.点击 Add Configurations...

IDEA of Mac 配置tomcat

2.添加tomcatServer,修改端口为8082,避免冲突,主要url项目名为/extra,要与后面的deployment的Application context保持一致,如图:

IDEA of Mac 配置tomcat

3.点击Configure...配置tomcat的安装路径,如图:

IDEA of Mac 配置tomcat

3.部署要发布的应用包 ,如图:

IDEA of Mac 配置tomcat

3.在web.xml配置欢迎页,如图:

IDEA of Mac 配置tomcat

4.访问地址:http://localhost:8082/extra/  ,就会直接进入index.jsp页面了。