Package JavaWeb files (war) in IDEA and deploy them to run in Tomcat


Package JavaWeb files (war) in IDEA and deploy them to run in Tomcat

1. Packaging

1. Method one

Please add image description

Please add image description
Please add image description
Please add image description
Please add image description
Copy the xxx.war package file and put it into Tomcat later.
Please add image description

2. Method two

Insert image description here

2. Deploy to Tomcat

Enter the webapps directory
Insert image description here
and place the copied xxx.war file into the webapps directory.
Insert image description here

3. Start the Tomcat server

Insert image description here
Insert image description here

4. Browser access

http://localhost:8080/demo05_1-1.0-SNAPSHOT/
Insert image description here

Guess you like

Origin blog.csdn.net/s17856147699/article/details/129440805