package org.jeecgframework.core.timer;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class Job {

 
//    @Scheduled(cron="*/10 * * * * *") 
//    public void s10(){
//        org.jeecgframework.core.util.LogUtil.info("==== 十秒执行一次=======10s");
//    }
//    
//    @Scheduled(cron="0 */1 * * * *") 
//    public void m1(){
//        org.jeecgframework.core.util.LogUtil.info("1m");
//    }
    
    /**
     * 每天1点执行一次
     * */
    @Scheduled(cron="0 0 1 * * ?") 
    public void oneOClockPerDay(){
        org.jeecgframework.core.util.LogUtil.info("1h");
    }
    
    
    
}

 

相关文章:

  • 2021-09-16
  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
  • 2021-08-29
  • 2022-01-09
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-12
  • 2021-11-30
  • 2021-12-09
  • 2021-10-23
  • 2021-09-30
  • 2021-06-17
相关资源
相似解决方案