Tomcat 部署:工程下 META-INF 目录下的 Context.xml
2016-02-26 12:01 youxin 阅读(7426) 评论(0) 编辑 收藏 举报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>