tomcat9.0中context.xml中的最初具体代码
时间: 2024-02-25 15:56:49 浏览: 170
最新版linux apache-tomcat-9.0.52.tar.gz
Tomcat 9.0中context.xml文件的最初具体代码如下所示:
```
<?xml version='1.0' encoding='utf-8'?>
<Context>
<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<!-- Uncomment this to disable session persistence across Tomcat restarts -->
<!--
<Manager pathname="" />
-->
<!-- Uncomment this to enable Comet connection tacking (provides events
on session expiration as well as webapp lifecycle) -->
<!--
<Valve className="org.apache.catalina.valves.CometConnectionManagerValve" />
-->
<!-- Uncomment this to disable session persistence across Tomcat restarts -->
<!--
<Manager pathname="" />
-->
<!-- Uncomment this to enable Comet connection tacking (provides events
on session expiration as well as webapp lifecycle) -->
<!--
<Valve className="org.apache.catalina.valves.CometConnectionManagerValve" />
-->
</Context>
```
这是一个空的context容器的基本配置文件。它定义了一些默认的监视资源和一些可选的配置选项,例如禁用会话持久化、启用Comet连接跟踪等等。这些选项可以根据应用程序的需要进行配置和调整。
阅读全文