12345678910111213141516171819202122 |
- package com.usky.task;
- import com.usky.utils.TimeUtil;
- import lombok.extern.slf4j.Slf4j;
- import org.springframework.scheduling.annotation.Scheduled;
- import org.springframework.stereotype.Component;
- /**
- * @author laowo
- * @version v1.0
- * @date 2021/5/28 09:50
- * @description TODO
- **/
- @Component
- @Slf4j
- public class Dhtask {
- @Scheduled(cron = "${cron.rk}")
- public void dhTask(){
- String time = TimeUtil.getTime();
- log.info("大华摄像机数据同步开始++++"+time+"++++++++");
- }
- }
|