[quote][/quote]
cronExpression配置说明
字段 允许值 允许的特殊字符
秒 0-59 , - * /
分 0-59 , - * /
小时 0-23 , - * /
日期 1-31 , - * ? / L W C
月份 1-12 或者 JAN-DEC , - * /
星期 1-7 或者 SUN-SAT , - * ? / L C #
年(可选) 留空, 1970-2099 , - * /
<!-- 定时检测日报填写情况,发送邮件--><!-- 定时检测周报填写情况,发送邮件-->
<bean id="jobDetailBean1" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject"><ref bean="reportManageService"/></property>
<property name="targetMethod"><value>sendmail</value></property>
</bean>
<bean id="cronTriggerBean1" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail"><ref bean="jobDetailBean1"/></property>
<property name="cronExpression"><value>0 0 2,9 * * ?</value></property>
</bean>
<!-- 启动定时器 -->
<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<!-- ref local="cronTriggerMonth1"/>
<ref local="cronTriggerDay1"/>
<ref local="cronTriggerMonth2"/>
<ref local="cronTriggerDay2"/> -->
<ref bean="cronTriggerBean1"/>
<ref local="cronTriggerovertime1"/>
<ref local="cronTriggerovertime2"/>
</list>
</property>
</bean>
cronExpression配置说明
字段 允许值 允许的特殊字符
秒 0-59 , - * /
分 0-59 , - * /
小时 0-23 , - * /
日期 1-31 , - * ? / L W C
月份 1-12 或者 JAN-DEC , - * /
星期 1-7 或者 SUN-SAT , - * ? / L C #
年(可选) 留空, 1970-2099 , - * /