1. Run — Edit Configurations in the menu bar 2. Templates — Tomcat Server — Local — Click Configure to select the folder where Tomcat is located (the port number will not be changed) — Click OK
New — Moudle — Java Enterprise — Check Web Application — Check xml