如何在tomcat中启用热部署 [英] how to enable hot deploy in tomcat

查看:109
本文介绍了如何在tomcat中启用热部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以编写一个ant脚本,将更新的类文件复制到tomcat中的 web-inf\classes 。但是,如何告诉Tomcat 7.0从 web-inf / classes 目录中自动获取更改的类文件?

I can write an ant script that copies updated class files to web-inf\classes in tomcat. But how can I tell Tomcat 7.0 to auto pick up the changed class files from web-inf/classes directory?

我尝试在tomcat主机配置 server.xml 中设置 autoDeploy =true,但是当检测到更改时,Tomcat会话被破坏了。
我可以轻松替代 eclipse tomcat插件 Intellij

I tried setting autoDeploy="true" in tomcat Host configuration server.xml but when a change is detected, Tomcat session is destroyed. Can I easily a substitute eclipse tomcat plugin in Intellij

推荐答案

我最终使用 HotSwapAgent工具。这是JRebel

I ended up using HotSwapAgent tool. That's a free alternative to JRebel

这篇关于如何在tomcat中启用热部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆