Quartz定时任务配置信息

配置信息xml文件

 1   <!-- 月核对  定时配置 -->
 2     <bean id="monthTaskCheckTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
 3         <property name="jobDetail" ref="monthTaskCheckDetail"/>
 4          <property name="cronExpression" value="0 15 00 1 * ?"/> 
 5        </bean>
 6        
 7        <bean id="monthTaskCheckDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
 8         <property name="targetObject" ref="monthTaskCheckObject"/>
 9         <property name="targetMethod" value="executeMonthCheck"/>
10         <property name="concurrent" value="false"/>
11     </bean>
12     
13        <bean id="monthTaskCheckObject" class="com.test.action.TaskAction">
14     </bean>
15     <!-- 月核对  定时配置 -->
16     
17     <!-- 调度设置 -->
18     <bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
19         <property name="triggers">
20             <list>
21                 <ref bean="monthTaskCheckTrigger"/>
22             </list>
23         </property>
24     </bean>

 

posted on 2017-02-07 15:58  JoUU  阅读(213)  评论(0编辑  收藏  举报

导航