quartz 的 CronTrigger 的 “00/5***?” 怎么设置
quartz 的 CronTrigger 的 “00/5***?” 怎么设置,请各位大侠给个详细的例子?在线等,谢谢 --------------------编程问答-------------------- http://jlusdy.iteye.com/blog/87044网上有很多说明,上面的供参考 --------------------编程问答-------------------- <bean id="cronTrigger" class="org.springframework.sche易做图ng.quartz.CronTriggerBean">
<property name="jobDetail" ref="jobDetail" />
<!-- 每月20日下午16:15触发 -->
<property name="cronExpression" value="0 15 16 20 * ?" />
</bean> --------------------编程问答--------------------
嗯,这个设置我知道,我的意思是,我写了一个类,继承了Job,配置基本也写了,在tomcat开启的时候如何运行,继承Job的类里的方法,还有我的里面出现了,这个异常org.quartz.SchedulerException: ThreadPool class not specified. --------------------编程问答--------------------
<bean id="dbToolsJob" class="com.travelsky.angel.hub.async.db.DbToolsWorker" />
<bean id="dbToolsTask"
class="org.springframework.sche易做图ng.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="dbToolsJob" />
</property>
<property name="targetMethod">
<value>work</value>
</property>
</bean>
<bean id="dbToolsTime"
class="org.springframework.sche易做图ng.quartz.CronTriggerBean">
<property name="jobDetail">
<ref bean="dbToolsTask" />
</property>
<property name="cronExpression">
<value>0 0 0 * * ?</value>
</property>
</bean>
<bean id="startQuertz" lazy-init="true" autowire="no"
class="org.springframework.sche易做图ng.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref bean="dbToolsTime" />
</list>
</property>
</bean>
补充:Java , Java EE