找到tomcat项目的apache-tomcat-8.0.30\conf\context.xml,打开进行编辑,把Context项中加上 reloadable="true"

<Context reloadable="true">

<!-- Default set of monitored resources. If one of these changes, the -->
<!-- web application will be reloaded. -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<WatchedResource>${catalina.base}/conf/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>

 

相关文章:

  • 2021-09-24
  • 2022-12-23
  • 2021-10-13
  • 2022-12-23
  • 2022-01-10
  • 2021-10-20
  • 2021-11-12
  • 2021-05-30
猜你喜欢
  • 2021-11-11
  • 2021-04-14
  • 2022-12-23
  • 2022-12-23
  • 2021-06-09
  • 2022-01-12
  • 2022-02-24
相关资源
相似解决方案