Modify the context.xml file
Since I learned servlet, every time I modify the contents in it, I have to restart the server if I want to access it. This feels very troublesome. So today I will teach you a method that only requires a line of code to solve the problem of " no need to restart the server ".
Please see the following illustration:
Write reloadable="true", in <Context> at line 19, and then save. reloadable="true" means reload (auto refresh)
This allows you to directly access it without restarting the server no matter what you modify.
Summarize
The above is an illustration of the method of configuring the context.xml file 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 everyone in time. Thank you very much for your support to Wulin.com website!