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
This article shares the specific code of Vue impo...
If you use docker search centos in Docker Use doc...
The <abbr> and <acronym> tags represen...
Detailed explanation of the usage of DECIMAL in M...
Canvas is a new tag in HTML5. You can use js to o...
What is ssh Administrators can log in remotely to...
The Drag and Drop API adds draggable elements to ...
Table of contents compose function Array.prototyp...
Download the redis image docker pull yyyyttttwwww...
Table of contents getting Started Data storage Co...
summary Docker-compose can easily combine multipl...
First, install PHP5 very simple yum install php T...
Table of contents 1. Interface effect preview 2.u...
The previous article introduced the installation ...
What you will learn 1. Software installation and ...