IntelliJ IDEA for Javaer development is still very nice, is the first time to use the configuration items may be a little strange, here is a record of the IntelliJ IDEA configuration running procedures.

1. Click Edit Config…

  

2. Click the Configure… Then set the local Tomcat path

  

 

3. Click On Deployment, then click on the + button and select the startup option in the pop-up box. (PS: All project names in the figure have been coded), select the startup item and click the “OK” button in the pop-up box. The Application Context can set the default path for each opening

  

4. Give your setup a name

  

5. Click the green triangle to run, and the bug button next to it is debug