123456789101112131415161718192021222324252627282930313233343536 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
- <beans>
-
-
- <bean id="bdzjob" class="org.springframework.scheduling.quartz.JobDetailBean">
- <property name="jobClass">
- <value>com.gyee.timer.TableBottomValueJob</value>
- </property>
- <property name="jobDataAsMap">
- <map>
- <entry key="tableBottomValueService" value-ref="tableBottomValueService" />
- </map>
- </property>
- </bean>
-
- <!-- 这种配置可以精确几点执行定时任务 -->
- <bean id="bdjobcronQuartzClock" class="org.springframework.scheduling.quartz.CronTriggerBean">
- <property name="jobDetail" ref="bdzjob" />
- <property name="cronExpression">
- <value>0 40 0 ? * *</value>
- </property>
- </bean>
- <!--启动定时任务 -->
- <bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
- <property name="triggers">
- <list>
- <ref bean="bdjobcronQuartzClock" />
- </list>
- </property>
- </bean>
- </beans>
|