Download and install tomcat configure TOMCAT8 in idea
Find settings in Idea (Ctrl+alt+s)
In the pop-up window, enter "Application" in the upper-left filter bar and select Application Servers in the results. (or click Application Servers in the IDE settings)
Click Add, fill in the server name, select the path to Tomcat 8, and click Apply OK.
Deploying Web Application
Under the File menu, locate project structure (or press ctrl+alt+shift+s)
In the pop-up Project structure, click Artifacts, click + in the middle column, create a new Web application exploded, the display interface is as follows:
Deployment
Select Run from the menu and select Edit Configurations in the popup menu, as shown in the following image:
In the pop-up window, click + New configuration, select Tomcat server-local, display the page as follows:
Enter name, select Server, and then select the Deployment label (note that the deployment package that needs to add the project is selected as the exploded War package), as shown in the following illustration:
Click Apply OK when the diagram above is configured.
Run
Click the green arrow in the Idea toolbar, as shown in the following image:
Or find it in the Run menu:
Post-click Effects are as follows:
Get.
If you start server again after stop server, the 8080 port conflict issue is reported. You can specifically configure a Tomcat usage for idea, and modify the port to remove other apps under WebApps. Port conflict problem resolution.
Author: jiankunking Source: http://blog.csdn.net/jiankunking