context.xml中增加<WatchedResource>WEB-INF/web.xml</WatchedResource>,Eclipse在修改了web.xml后将自动更新到tomcat服务器中。

<?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" />
    -->
</Context>

 

 

相关文章:

  • 2021-06-06
  • 2022-12-23
  • 2022-02-26
  • 2022-01-25
  • 2022-12-23
  • 2021-12-17
  • 2021-11-19
猜你喜欢
  • 2021-11-06
  • 2021-09-02
  • 2021-09-04
  • 2021-07-25
  • 2022-01-07
  • 2021-07-02
相关资源
相似解决方案