java – 在开发环境中,在tomcat中重新加载webapp是一种简单,快速的方法?

我在 Windows上运行Tomcat 6.我有“监视器Tomcat”系统托盘图标,允许我启动和关闭Tomcat,但还有另一个小工具,允许我在更改类文件时轻松地重新加载我的网络应用程序?我知道与Tomcat一起提供的“经理”应用程序,但只是想知道是否有一个本地应用程序会做到这一

我在
Windows上运行Tomcat 6.我有“监视器Tomcat”系统托盘图标,允许我启动和关闭Tomcat,但还有另一个小工具,允许我在更改类文件时轻松地重新加载我的网络应用程序?我知道与Tomcat一起提供的“经理”应用程序,但只是想知道是否有一个本地应用程序会做到这一点更快更好?

解决方法

只需在Context中添加一个reloadable = true属性即可.引用
documentation:

Set to true if you want Catalina to monitor classes in /WEB-INF/classes/ and /WEB-INF/lib for changes,and automatically reload the web application if a change is detected. This feature is very useful during application development,but it requires significant runtime overhead and is not recommended for use on deployed production applications. That’s why the default setting for this attribute is false. You can use the 07001 web application,however,to trigger reloads of deployed applications on demand.

作者: dawei

【声明】:西安站长网内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。

为您推荐

联系我们

联系我们

0577-28828765

在线咨询: QQ交谈

邮箱: xwei067@foxmail.com

工作时间:周一至周五,9:00-17:30,节假日休息

返回顶部