05_Tomcat——The web project deployed in IDEA runs on Tomcat

1. It is recommended to modify the name of the Tomcat running instance corresponding to the web project.
Simply put, it is comfortable to look at and easy to use. Otherwise, the names of each running instance of Tomcat are similar, and it is very uncomfortable to distinguish them.
insert image description here

2. Confirm that there are web project modules that need to be deployed and run in the Tomcat instance
insert image description here

3. You can modify the default access address, port number, and default startup browser settings after the Tomcat instance starts
insert image description here

Add a small point about the project access path:
insert image description here

4. Click the start button to start

In order to see the effect, write a few words on the index.jsp page
insert image description here

Click the start button
insert image description here

Start successfully
insert image description here

Error summary
Here is a point to note: if you start tomcat and then start the web project on the idea, an error 404 will be reported
because the project on the idea will start tomcat for you when you click the start button, which is equivalent to starting tomcat repeatedly Causes an error
So, when running a web project on idea, tomcat does not need to be started

insert image description here

Not only the web page will report an error 404, but the command prompt interface of tomcat will also report an error prompt, and the last line will prompt a prompt message that there is a repeated problem
insert image description here

Guess you like

Origin blog.csdn.net/qq_45657848/article/details/128825945