When we are developing, we often encounter, modify the Java file, then Tomcat will restart, in order to improve the efficiency of development, we can modify after not all restart, just compile the modified part of the file.
In the development process, to modify some Java files do not need to restart the service, such as to add comments to the Java class, add debug print statements and so on.
However, some of the modified content, you must reload Tomcat to re-take effect, such as modified the structure of the Code, new methods and so on. If you do not restart, then there is no effect.
1. Modify the Tomcat configuration file to find the Service.xml.
Modify the inside reloadable= "true" to reloadable= "false".
(1), such as
650) this.width=650; "Src=" http://hiphotos.baidu.com/exp/pic/item/7ac880510fb30f247fa95352ca95d143ad4b0374.jpg " class= "Pic-cursor-pointer" height= "380" width= "650" style= "border:0px;margin:0px auto 0px 54px;width:650px;height : 380px; "border=" 0 "hspace=" 0 "vspace=" 0 "title=" "alt=" 7ac880510fb30f247fa95352ca95d143ad4b0374 "/>
This article from "Jianbo" blog, reproduced please contact the author!
Modify Java files Without restarting the Tomcat service method