ways to modify Java files without restarting the Tomcat service
When you use Eclipse+tomcat to develop Java projects, you often encounter situations where the modified Java file Tomcat automatically restarts, followed by a lengthy wait service reboot. In fact, most of the Java file modification is not necessary to restart the service, only some specific Java files, such as only the restart service when the Java code will need to restart the service.
There are two ways to modify Java code without restarting the service:
1. Modify Tomcat configuration file (Tomcat-5.5.20/conf/catalina/localhost directory)
Add reloadable= "false" in configuration
<context path= "/"
Reloadable= "false"
Docbase= "F:/workspace/shpm3/shpm3-web"
Workdir= "F:/workspace/shpm3/work"/>
2, can also be set up through eclipse to implement the above configuration file changes
Eclipse's project name right-click: properties->tomcat->general->make this context as reloadable (reloadable= "true") do not select
Eclipse's Engineering name right-click: Tomcat project->update Context Definition