IDEA configure Tomcat | Super detailed

First, you need to install Tomcat, click Tomcatthe download and installation and deployment of my view .

After opening IDEA, it looks like this:

Insert picture description here
Click the red box in the upper right corner Add Configurations, and the interface as shown in the figure below will pop up:

Insert picture description here

Then click on that +number, pull down, find Tomcat Server, click, and then click ;Local, as shown in the figure below:

Insert picture description here

After clicking, it looks like this:

Insert picture description here

If it is the first configuration, then your red box part should be blank, click next to the box Configure, click the installation location you 文件夹图标choose as shown in the figure below Tomcat.

Insert picture description here

Then click OK, go back to the page just now, click Deployment, and then click +to add your project. +After clicking, there will be two options, the first is Artifactthis is to IDEAadd the item currently in , the second is Extrenal Sourcethat this means to add another item, just select the path. As shown below:

Insert picture description here
After finishing OK, click to create a project and click to run.

Guess you like

Origin blog.csdn.net/lesileqin/article/details/111948621