tomcat 在META-INF 文件夹中添加context.xml,使项目自动应用更新文件
Meta-inf文件夹下新建context.xml。
<Context path="/FUWeb" docBase="D:/apache-tomcat-6.0.29/webapps/FUWeb" debug="0" privileged="true" reloadable="true"/>
或者内容如:
<?xml version="1.0" encoding="UTF-8"?>
<Context antiJARLocking="true" path="/myapp"/>
或则
<Context>
<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<WatchedResource>WEB-INF/dwr.xml</WatchedResource>
<WatchedResource>C:/Tomcat6.0/webapps/Proj_logistics/WEB-INF/classes/struts.xml</WatchedResource>
</Context>