您的位置 首页 Java

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

我在
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,我们将及时予以处理。

热门文章