qartz每天按时间段执行,并且周末不执行

<trigger>
           <cron>
               <name>SMSWarnCronTrigger1</name>
               <group>Trigger-Group1</group>
               <job-name>SMSWarnJob1</job-name>
               <job-group>Job-Group1</job-group>
               <!--start-time>2010-02-09T12:26:00.0</start-time-->
               <!--end-time>2012-02-09T12:26:00.0</end-time-->
               <misfire-instruction>MISFIRE_INSTRUCTION_DO_NOTHING</misfire-instruction>
               <!-- cron-expression>0 50 13 ? * *</cron-expression -->
               <cron-expression>0 0/30 8-17 ? * MON-FRI</cron-expression>
               <!-- cron-expression>0 15 10 ? * MON-FRI</cron-expression  -->
               <!--time-zone>America/Los_Angeles</time-zone -->
           </cron>
       </trigger>



<cron-expression>0 0/30 8-17 ? * MON-FRI</cron-expression>

解释:周一到周五,每天8点到17点,每个30分钟执行一次

你可能感兴趣的:(quartz)