码头如何重新部署战争 [英] Jetty How to re-deploy war
问题描述
现在,我已阅读Jetty文档 http://wiki.eclipse.org/Jetty/Tutorial/Embedding_Jetty#Setting_a_Web_Application_Context .
Now I have read Jetty docs http://wiki.eclipse.org/Jetty/Tutorial/Embedding_Jetty#Setting_a_Web_Application_Context .
但是没有有关如何通过scanInterval对战争文件进行热重新部署来制作代码的信息.
But there are no info about how to make code with hot re-deploy of the war file with scanInterval.
更改后必须重新部署war文件.
It must re-deploy war file if it changed.
如何编写此代码?
推荐答案
对于热部署,您需要使用Deployment Manager和WebApp或上下文提供程序来部署WebApp.
For hot deploy you need to deploy the webapp with the deployment manager and the webapp or context provider.
http://wiki.eclipse.org/Jetty/Feature/Hot_Deployment
此处显示的xml(以及在jetty-deploy.xml和jetty-webapps.xml中的分布)可以简单地转换为Java
the xml shown there (and in the distribution in the jetty-deploy.xml and jetty-webapps.xml) can be converted to java simply
这篇关于码头如何重新部署战争的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!