SchedulingConfigTask.java 788 B

123456789101112131415161718192021222324252627
  1. //package com.kameng.project.task;
  2. //
  3. //import org.slf4j.Logger;
  4. //import org.slf4j.LoggerFactory;
  5. //import org.springframework.context.annotation.Configuration;
  6. //import org.springframework.scheduling.annotation.EnableScheduling;
  7. //import org.springframework.scheduling.annotation.Scheduled;
  8. //
  9. ///**
  10. // * 定时任务配置类
  11. // *
  12. // * @author 单红宇(365384722)
  13. // * @myblog http://blog.csdn.net/catoop/
  14. // * @create 2016年3月21日
  15. // */
  16. //@Configuration
  17. //@EnableScheduling // 启用定时任务
  18. //public class SchedulingConfigTask{
  19. //
  20. // private final Logger logger = LoggerFactory.getLogger(getClass());
  21. //
  22. // @Scheduled(cron = "0/20 * * * * ?") // 每20秒执行一次
  23. // public void scheduler() {
  24. // logger.info(">>>>>>>>>>>>> scheduled ... ");
  25. // }
  26. //
  27. //}