1,创建javaweb(maven)项目
2,配置javaweb(maven版)
(1) 配置pom文件与web.xml文件

(2) 配置Tomcat
使用自己下载或idea自带的Tomcat都行,这里用的