加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Java > 正文

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

发布时间:2020-12-14 16:27:20 所属栏目:Java 来源:网络整理
导读:我在 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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读