The results are different in Windows and Linux environments. Windows Step 1: Use Maven to create a war package (if the war package is named: hello-back.war) Step 2: Copy the war package to the webapps directory of the tomcat installation Step 3: Start tomcat (you can modify the port number in conf/server.xml) Step 4: Just access the browser 127.0.0.1::8080
linux Same operation, same deployment, no style, what the hell Don't worry, don't worry. . . There is a problem here. It defaults to adding the project name to the root directory. For example, hello-back is added above. In this way, some resource files cannot be loaded (because the resource files are relative to the root directory). To change this root directory, just modify Tomcat's server.xml configuration file (it's in conf/server.xml) Add the following sentence between <Host> and </Host> Summarize The above is the method of manually deploying war packages on Windows and Linux through tomcat9 introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: How to modify the default storage engine in MySQL
>>: Implementation example of react project from new creation to deployment
The scroll-view of WeChat applet has more bugs wh...
The database enables slow query logs Modify the c...
Get the Dockerfile from the Docker image docker h...
Table of contents The relationship between the co...
Problem: The MySQL database crashed unexpectedly ...
This is not actually an official document of IE. I...
Table of contents 1. Scenario 2. Simplify the und...
Introduction react-i18next is a powerful internat...
Sometimes you just want to test an app but don’t ...
(1) Experimental environment youxi1 192.168.5.101...
First: 4 ways to introduce CSS There are four way...
Adaptive layout is becoming more and more common i...
vmware vsphere 6.5 is the classic version of vsph...
What is MyCAT A completely open source large data...
There was no problem connecting to the database y...