Spring的定时器

<!-- 定时器 -->
  <task:annotation-driven /> <!-- 定时器开关-->  
   <bean id="TimerCreatIndex" class="com.j2cms.TimerCreatIndex"></bean>  
   <task:scheduled-tasks>  
       <task:scheduled ref="TimerCreatIndex" method="crateIndexTestExt" cron="0 52 15 * * ?"  />  
    </task:scheduled-tasks>  
<!-- 定时器 -->
 

猜你喜欢

转载自yeelor.iteye.com/blog/1666861