spring配置如下:
<!-- quartz 定时 -->
<bean name="boaJobTask_jobDetail" class="org.springframework.scheduling.quartz.JobDetailBean"><property name="jobClass">
<value>com.smk.boa.bo.doboa.BoaJobTask</value> <!--需要重复的任务, extends TimerTask -->
</property>
</bean>
<bean id="boaJobTask_TriggerBean" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail">
<ref bean="boaJobTask_jobDetail"></ref>
</property>
<property name="cronExpression">
<value>0 0/1 * * * ?</value> <!--重复的时间配置-- >
</property>
</bean>
<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref local="boaJobTask_TriggerBean"></ref>
</list>
</property>
</bean>