版本:Tomcat 4.0
方法一:通过后台管理http://localhost:8080/manager/html 应用管理来RELOAD
方法二:修改conf/server.xml中相关的上下文<content>描述,指定 reloadable=true ;
模拟其中的example示例,将其中的example替换你的工程名
版本:Tomcat 5.0
假设工程名为:TTBM
在D:/Tomcat 5.0/conf/Catalina/localhost 下添加一个文件TTBM.xml,其内容为:
<!--
Context configuration file for the Tomcat Balancer Web App
This is only needed to keep the distribution small and avoid duplicating
commons libraries
$Id: balancer.xml,v 1.1 2003/11/20 21:43:32 remm Exp $
-->
<Context path="/TTBM" docBase="TTBM" debug="0" privileged="true" reloadable="true">
</Context>