Configure Tomcat server in IDEA

The download and installation of Tomcat ( Tomcat download and installation ) has been explained in detail in the previous blog . This article will talk about how to configure Tomcat in IDEA. When I tried the configuration for the first time, there were many small problems.



1. New JavaWeb project

The steps are the same as creating a normal java project:
Insert picture description here
Insert picture description here
after creating it, you need to modify the
project name here (see the picture) right click —>
Insert picture description here
Insert picture description here
so that the project is created, you
can write a simple HTML yourself for subsequent testing
Insert picture description here

Two, configure Tomcat

Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here

Insert picture description here
At this point, the following "Build …" appears, and then click OK; (at the end to see the test)
If the following content does not appear, just follow the steps to continue;


Insert picture description here

Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here


Three, test it

Click to run
Insert picture description here
Insert picture description here
This interface appears in the browser, and the configuration is complete!

Guess you like

Origin blog.csdn.net/pary__for/article/details/111321710