在idea中创建web项目

首先我们新建一个Web项目:

Idea中点击File --------->New ----------->Project

 

选中JavaEE下的Web Application

 

 

点击FIle-------->Settings

 

选择Build,Execution,Deployment------>Application Servers-------->”+”------------->Tomcat Server然后选择TomCat路径,配置TomCat

 

右键点击项目,选择Open Module Settings

 

选择Modules ------>Dependencies---------------> “+” ------------------->Library

 

 

此时在External Libraries中就有Tomcat可以用了

 

 

 

 

原文地址:https://www.cnblogs.com/alexanderthegreat/p/7102624.html