How to modify the Java file without restarting the Tomcat Service
This is often the case when you use eclipse + Tomcat to develop Java projects. If you have modified the Java file, Tomcat will be automatically restarted. The next step is to wait for the service to restart. In fact, most Java file modifications do not need to restart the service. Only some specific java files, such as the Java code called only when the service is restarted, need to restart the service.
There are two ways to modify the Java code to prevent service restart:
1. Modify the tomcat configuration file (under the tomcat-5.5.20/CONF/Catalina/localhost directory)
Add reloadable = "false" to the configuration"
<Context Path = "/"
Reloadable = "false"
Docbase = "F:/workspace/shpm3/shpm3-web"
Workdir = "F:/workspace/shpm3/Work"/>
2. You can also modify the above configuration file through setting on Eclipse.
Right-click eclipse Project name: properties-> tomcat-> General-> make this context as reloadable (reloadable = "true") do not select
Right-click the eclipse Project name: Tomcat project-> Update context Definition
How to modify the Java file without restarting the Tomcat Service
This is often the case when you use eclipse + Tomcat to develop Java projects. If you have modified the Java file, Tomcat will be automatically restarted. The next step is to wait for the service to restart. In fact, most Java file modifications do not need to restart the service. Only some specific java files, such as the Java code called only when the service is restarted, need to restart the service.
There are two ways to modify the Java code to prevent service restart:
1. Modify the tomcat configuration file (under the tomcat-5.5.20/CONF/Catalina/localhost directory)
Add reloadable = "false" to the configuration"
<Context Path = "/"
Reloadable = "false"
Docbase = "F:/workspace/shpm3/shpm3-web"
Workdir = "F:/workspace/shpm3/Work"/>
2. You can also modify the above configuration file through setting on Eclipse.
Right-click eclipse Project name: properties-> tomcat-> General-> make this context as reloadable (reloadable = "true") do not select
Right-click the eclipse Project name: Tomcat project-> Update context Definition