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.
Article Directory
1. New JavaWeb project
The steps are the same as creating a normal java project:
after creating it, you need to modify the
project name here (see the picture) right click —>
so that the project is created, you
can write a simple HTML yourself for subsequent testing
Two, configure Tomcat
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;
Three, test it
Click to run
This interface appears in the browser, and the configuration is complete!