[Tomcat] Tomcat installation and configuration and using Tomcat in Idea:


1. Obtain the installation package

Official website download https://tomcat.apache.org/

insert image description here

2. Configuration environment

%CATALINA_HOME%\bin

insert image description here

3. Verify whether the configuration is successful

[Method 1] By running the startup.bat in the bin folder under the tomcat folder

insert image description here

[Method 2] Shortcut key [win+r], enter [cmd], click [OK], enter startup.bat

insert image description here

4. Solutions to garbled characters and occupied port numbers

[1] Garbled characters appear

insert image description here
insert image description here

【2】The port number is occupied

insert image description here

【3】startup.bat flashback problem

insert image description here

5. The effect of successful installation

insert image description here

6. Using Tomcat in Idea

insert image description here
insert image description here
insert image description here
insert image description here
insert image description here

The effect after the project starts:
insert image description here
insert image description here

Guess you like

Origin blog.csdn.net/weixin_53791978/article/details/130282223