我在
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 isfalse
. You can use the 07001 web application,however,to trigger reloads of deployed applications on demand.