不要想一次又一次打造 [英] dont want to build again and again
问题描述
我有一个web应用可以在位置说
I have a webapplication lets say at location
C:\Test\MyWeb
每当我做出一些改变我必须通过蚂蚁包
命令来重建它。然后,我的MyWeb.war文件复制到Apache的Web应用程序文件夹中。
Every time I make some change I have to rebuild it via ant package
command. Then I copy the MyWeb.war file into apache's webapp folder.
我想避免这种情况的构建和每次更改后复制的东西。如何绕过它?
I want to avoid this build and copy thing after every change. How to bypass it?
推荐答案
有关开发环境,服务器支持类似热部署
。您可以部署Web应用程序的分解目录。
For development environment, server supports something like HOT Deployment
. You can deploy an exploded directory of the web application.
下面制作Web应用程序的更改会自动反映出来。有时候,某些服务器可能会重新启动应用程序的一些变化。但是,你没有打包和部署的每一个变化。
Making following changes to web application will automatically reflected. Sometimes some servers might restart application for some of these changes. But, you dont have to package and deploy for every change.
- 添加新的JSP的
- 修改web.xml中
- 修改JSP的Servlet的或
这篇关于不要想一次又一次打造的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!