打开 Tomcat安装目录的conf文件夹下的 context.xml
<!-- The contents of this file will be loaded for each web application -->
<Context reloadable="true">
<!-- 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" />
-->
</Context>
把红色部分加上就OK了!!
本文介绍如何在Tomcat中配置Context参数以实现应用的热部署及会话管理等功能。具体包括设置应用可重载、定义监控资源及禁用会话持久化等。
1219

被折叠的 条评论
为什么被折叠?



