In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "tomcat hot deployment and hot loading method". In the actual case operation process, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!
Detailed tomcat hot deployment and hot loading methods
I often have to change Java/JSP files in the project development process, but I don't want to restart the server (the server takes time to restart), and I want to get (debug) results directly. There are two ways to hot-deploy and hot-load:
1. Hotload: Set reloadable="true" in server.xml-> context property
2. Hot deployment: Set autoDeploy="true" in server.xml-> context property
It is also possible to:
1 Code Copy Code Collection Code
3. Difference:
Hot loading: The server will listen for class file changes, including web-inf/class,wen-inf/lib, web-inf/web.xml and other files. If changes occur, it will load locally without emptying the session and releasing the memory. Development with many, but to consider the case of memory overflow.
Hot Deployment: The entire project is redeployed, including you retyping the.war file. It clears the session and frees up memory. A lot of it is used when the project is packaged.
You can also modify the configuration file above by setting it on Eclipse
Eclipse project name right-click: properties->Tomcat->General->Make this context as loadable (loadable ="true") Do not select Eclipse's project name Right click:Tomcat project->Update Context Definition
"tomcat hot deployment and hot load method" content introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.