打开 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了!!

相关文章:

  • 2021-09-16
  • 2021-06-03
  • 2021-06-25
  • 2021-06-28
  • 2022-12-23
  • 2021-11-21
  • 2021-09-01
  • 2021-12-06
猜你喜欢
  • 2021-12-15
  • 2022-12-23
  • 2021-12-25
  • 2022-02-27
  • 2022-01-01
  • 2022-12-23
  • 2021-04-23
相关资源
相似解决方案