第一步:新建一个java项目 第二步:右键,Add Frameworks Support,添加 web 第三步:添加并设置 Tomcat 服务器 第四步:运行服务器 拓展:更改 context root 路径