spring定时任务执行两次

  1. <Host name="localhost"  appBase=""  web

  2.            unpackWARs="true" autoDeploy="true"  apache

  3.            xmlValidation="false" xmlNamespaceAware="false">  tomcat

  4.   

  5.        <Context  docBase="/usr/local/apache-tomcat-6.0.29/webapps/semwinner"  path=""   reloadable="true"></Context>  app

  6.        <Context  docBase="/usr/local/apache-tomcat-6.0.29/webapps/emarboxmanager"  path="/admin"   reloadable="true"></Context>  webapp

  7.   

  8.      </Host>  spa

 把appBase设置为空便可!orm

去除了appBase="webapps"中的webapps变成了appBase="",由于web应用程序都是放在webapps这个目录下的,若是 不把“webapps“去掉,这里会调用一次quartz的任务调度,在接下来的“<Context path”中又会调用一次quartz的任务调度,因此就重复了2次xml

相关文章
相关标签/搜索