How to start tomcat in Intellij idea

How to start tomcat in Intellij idea
1) Configure the tomcat application server
File->Settings...
Build,Execution,Deployment->Application Servers
Click the "+" sign, select "Tomcat Server",
select the address of tomcat, and click OK

2) Configure the web application
Defaults->TomcatServer
Click the "+" sign, the
Server tab page, modify the Name, the Applicaton server drop-down box to select the Tomcat application server just configured.
The Deployment directory selects the web application to be deployed. Note that the WebContent folder must be selected here, that is, the upper-level directory on WEB-INF:
Click OK, and configure the context path of the application:

3) Modify the compilation output path.
Project -> Right-click -> Open Module Settings
, select the Paths tab, and configure output path: to WEB-INF\classes, otherwise the class will not be found.

Guess you like

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