參考: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" />