首页 > 代码库 > Tomcat设置自动检测和加载变化了的类

Tomcat设置自动检测和加载变化了的类

修改Tomcat/conf/context.xml,在标签中<Context reloadable="true">加入reloadable=”true”

 

<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>

Tomcat设置自动检测和加载变化了的类