Deploy web projects using tomcat under IDEA

1. The new WEB project under IDEA will not be mentioned.

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 :




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:




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:
 


5. Click OK, as shown in the figure below:



6. Select: run--->Edit configurations... in the menu bar to configure the startup parameters, as shown in the figure below:
 



7. Select the Deployment tab, click +, and select artifact. .., select the previously configured Artifact. As shown below:
 


At this time, the web project can be run.


Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326942498&siteId=291194637