Modify the servlet without restarting the server (reproduced from 9CBS WJMMM (smile and sad))

xiaoxiao2021-03-06  73

I learned a good tip today today:

Modify the servlet without restarting the Tomcat server and the WebSphere server, you can increase the development speed.

(1) Modify the serlet without restart Tomcat

modify

% Tomcat_Home% / Conf / Server.xml

Roughly is as follows:

Where RELOADABLE is configured to automatically reload, set it to true if this is not, plus.

(2) Modify the servlet in WebShpeRe instead of restarting the service:

Modify ../web-inf below Web.xml:

Join

ReloadInterval = "3"

ReloadingNableD = "true"

FILESERVINGENABED = "True"

DirectoryBrowSingenabled = "true"

ServeservletsByclassNameEnabled = "True"

>

Wherein reloadInterval = "3" reloadingEnabled = "true" fileServingEnabled = "true" directoryBrowsingEnabled = "true" serveServletsByClassnameEnabled = "true" is the main, reloadInterval = "3" reloadingEnabled = "true" three seconds is automatically re-upload said modified

Into.

转载请注明原文地址:https://www.9cbs.com/read-108543.html

New Post(0)