1 <!-- The contents of this file will be loaded for each web application --> 2 <Context> 3 4 <!-- Default set of monitored resources --> 5 <WatchedResource>WEB-INF/web.xml</WatchedResource> 6 7 <!-- Uncomment this to disable session persistence across Tomcat restarts --> 8 <!-- 9 <Manager pathname="" /> 10 --> 11 12 <!-- Uncomment this to enable Comet connection tacking (provides events 13 on session expiration as well as webapp lifecycle) --> 14 <!-- 15 <Valve className="org.apache.catalina.valves.CometConnectionManagerValve" /> 16 --> 17 18 </Context>
tomcat 服务器启动时读取context.xml 文件,
然后 回去读取web项目下的web.xml文件