Can you undeploy applications from JETTY?

2019-02-21 01:22发布

问题:

I cant seem to find a way to undeploy or turn off an application whilst JETTY is running. Is the only way to kill JETTY and all other apps running?

回答1:

You can do that in a few ways.

If you have the deploy module enabled, just move the {appname}.war (or {appname}.xml) out of your ${jetty.base}/webapps/ directory, that will undeploy that webapp.

Another choice is to have JMX enabled and just .stop() the webapp in question.



标签: Jetty