参考:http://dogandwolf.blog.sohu.com/91483746.html
利用了quartz来进行作业调度,结果日子显示作业每次调度时,被执行了两次,问题出在tomcat的xml的配置上,将
<Hostname="localhost" appBase="webapps"
unpackWARs="true"autoDeploy="true"
xmlValidation="false"xmlNamespaceAware="false">
<Context path="" docBase="bcu" />
改写为如下
<Hostname="localhost" appBase=""
unpackWARs="true"autoDeploy="true"
xmlValidation="false"xmlNamespaceAware="false">
<Context path="" docBase="webapps/bcu" />