Currently, you are working on a website project using myeclipse + Tomcat. Every time you modify the project source code, you need to restart tomcat, re-export the project to the webapps folder, or redeploy it, which is too troublesome. So I studied how to set tomcat to a hot start, that is, the Tomcat server does not need to be restarted when the source code is modified. The method is as follows:
Step 1:
Modify CONF/server in the tomcat installation directory. in XML, set the reloadable attribute to true, that is, add reloadable = "true" to the host tag. Restart tomcat to make the configuration file take effect.
Step 2:
Add the following content to the Web. xml file in the conf Folder:
<Init-param>
<Param-Name> development </param-Name>
<Param-value> true </param-value>
</Init-param>
Step 3:
Restart the Tomcat server to make the modification take effect. Then, in the servers window of myeclipse, click the Red Circle button in the figure (deploy a new project to Tomcat ).
Then:
Click Finish. In this case, a prompt window may pop up, indicating whether to set it to automatically take effect every time the source code is modified. You don't have to restart it. Click OK.
OK, so far, the configuration is complete. After the source code (including servlet Code) is modified, you do not need to restart tomcat. However, you need to click the deployment button to redeploy the project.