job.xml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
  3. <beans>
  4. <bean name="jobstore1" class="org.springframework.scheduling.quartz.JobDetailBean">
  5. <property name="jobClass">
  6. <value>com.gyee.timer.RecommenmainJob</value>
  7. </property>
  8. <property name="jobDataAsMap">
  9. <map>
  10. <entry key="recommenmainService" value-ref="recommenmainService" />
  11. </map>
  12. </property>
  13. </bean>
  14. <bean id="cron1" class="org.springframework.scheduling.quartz.CronTriggerBean">
  15. <property name="jobDetail">
  16. <ref bean="jobstore1" />
  17. </property>
  18. <property name="startDelay" value="10000" />
  19. <property name="cronExpression">
  20. <value>0 20 8 * * ?</value>
  21. </property>
  22. </bean>
  23. <bean autowire="no"
  24. class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
  25. <property name="autoStartup" value="true" />
  26. <property name="triggers">
  27. <list>
  28. <ref local="cron1" />
  29. </list>
  30. </property>
  31. <property name="quartzProperties">
  32. <map>
  33. <entry key="org.quartz.threadPool.threadCount" value="10" />
  34. </map>
  35. </property>
  36. </bean>
  37. </beans>