First, you need to install Tomcat
, click Tomcat
the download and installation and deployment of my view .
After opening IDEA
, it looks like this:
Click the red box in the upper right corner Add Configurations
, and the interface as shown in the figure below will pop up:
Then click on that +
number, pull down, find Tomcat Server
, click, and then click ;Local
, as shown in the figure below:
After clicking, it looks like this:
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
.
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 Artifact
this is to IDEA
add the item currently in , the second is Extrenal Source
that this means to add another item, just select the path. As shown below:
After finishing OK
, click to create a project and click to run.