首页 > 其他 > 详细

quartz_jobs.xml标准配置

时间:2016-06-22 10:30:40      阅读:482      评论:0      收藏:0      [点我收藏+]

<?xml version="1.0" encoding="UTF-8"?>
<job-scheduling-data xmlns="http://quartznet.sourceforge.net/JobSchedulingData" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0">
<processing-directives>
<overwrite-existing-data>true</overwrite-existing-data>
</processing-directives>
<schedule>
<job>
<name>smsJob</name>
<group>smsGroup</group>
<description>SMS发短信任务</description>
<job-type>G2.Services.SendSMS, G2.Services.SendSMS</job-type>
<durable>true</durable>
<recover>false</recover>
</job>
<trigger>
<cron>
<name>smsTrigger</name>
<group>smsTriggerGroup</group>
<job-name>smsJob</job-name>
<job-group>smsGroup</job-group>
<start-time>2014-10-22T00:00:00+08:00</start-time><!-- 去掉这句就不会启动程序就执行,而是到点再执行-->
<cron-expression>0 45 9 * * ?</cron-expression><!-- 每天09:45分执行-->
</cron>
</trigger>
</schedule>
</job-scheduling-data>

quartz_jobs.xml标准配置

原文:http://www.cnblogs.com/zhshlimi/p/5605995.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!