2. Configure tomcat: file-->settings-->Build,Execution,Deployment-->Application servers, click +, select Tomcat server, select the installation directory of tomcat in the pop-up dialog box, click ok, the display is as follows :
![](http://dl2.iteye.com/upload/attachment/0109/3718/43f4f86e-1b14-3556-b8a3-6449c0256759.png)
3. Click file-->project structure-->modules, select the web project to be deployed, click +, select web in the pop-up drop-down box, and enter the name you want in name. As shown below:
![](http://dl2.iteye.com/upload/attachment/0109/3720/77a64830-bb33-39ca-a549-973c1137d960.png)
4. Click Artifacts in the same level directory, click +, in the pop-up options, select Web Application:Exploded-->From Modules..., select the module to be deployed. As shown in the figure below:
![](http://dl2.iteye.com/upload/attachment/0109/3722/ddee5166-d93e-3428-84d3-6477a3f9aa9e.png)
5. Click OK, as shown in the figure below:
![](http://dl2.iteye.com/upload/attachment/0109/3724/d36591e7-aa2a-3cf7-9ac1-29d11f155377.png)
6. Select: run--->Edit configurations... in the menu bar to configure the startup parameters, as shown in the figure below:
![](http://dl2.iteye.com/upload/attachment/0109/3726/50593e31-058a-3135-85a3-fbb055322ca2.png)
7. Select the Deployment tab, click +, and select artifact. .., select the previously configured Artifact. As shown below:
![](http://dl2.iteye.com/upload/attachment/0109/3728/30c47ef6-2a5d-3d39-ab84-72ab50251ce4.png)
At this time, the web project can be run.