tomcat在更新代码后自动重启

当我们部署最新的代码到TOMCAT服务器的时候,可以通过以下配置来实现容器的自动重启:
<Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">
<Context path="/xyz" debug="0" docBase="D:\apache-tomcat-6.0.36\webapps\xyz" reloadable="true">
</Context>
</Host>

猜你喜欢

转载自357029540.iteye.com/blog/2280250
今日推荐