Write configuration files in server.xml and content.xml. After restarting the server, you will find that the xml will restore the default settings and all previous configurations will be gone. Reason: When you integrate and add Tomcat in Eclipse, Eclipse will automatically store the Tomcat configuration file. It exists as a project in eclipse, which is our common Servers project package. When the Tomcat server is started in Eclipse, it will automatically publish the projects deployed in Eclipse. However, sometimes we configure these two files externally, and Eclipse only recognizes the projects deployed in it, so it will create a new server.xml file to overwrite the files we configured. Method 1:Set up Ecplise and cancel the automatic publishing function. Select Window-Preferences-Server-Launching, uncheck Automatically publish on starting servers, and click OK. Method 2:In the Server project in the Ecplise project, there is a Tomcat v7.0 (3) at localhost-config file There are server.xml and content.xml below, replace them with your modified files. When Tomcat is re-released, the configuration files here will be used to overwrite the files under Tomcat's conf. This is the end of this article about how to solve the problem of automatic restoration after modifying server.xml and content.xml in Tomcat. For more information about how to automatically restore Tomcat after modifying server.xml and content.xml, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Let's take a look at some powerful operators in JavaScript
>>: 10 Deadly Semantic Mistakes in Web Typography
Table of contents mvc mvp mvvm The source of Vue ...
1: I won’t go into the details of how to install ...
The detailed steps for installing mysql5.7.19 on ...
## 1 I'm learning docker deployment recently,...
0x0 Introduction First of all, what is a hash alg...
This article uses the "Attribution 4.0 Inter...
I believe everyone is familiar with the trashcan,...
Node.js solves the problem of Chinese garbled cha...
System environment: Ubuntu 16.04LTS This article ...
Table of contents 1. Routing related objects 2. L...
Table of contents 1. Direct assignment 2. Shallow...
Use the FRAME property to control the style type ...
Nowadays, application development is basically se...
vue-infinite-scroll Install npm install vue-infin...
background The company code is provided to third ...