//package cn.superdesk.uniorder.scheduler.task;
//
//
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.scheduling.annotation.Async;
//import org.springframework.scheduling.annotation.EnableAsync;
//import org.springframework.scheduling.annotation.EnableScheduling;
//import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.stereotype.Component;
//
//import java.time.LocalDateTime;
//
///**
// * @Description: 测试方式1
// * @Author: linjinyu
// * @CreateDate: 2020/12/2 下午6:05
// * @UpdateUser: linjinyu
// * @UpdateDate: 2020/12/2 下午6:05
// * @UpdateRemark: 修改内容
// * @Version: 1.0
// */
//@Slf4j
//@Component
//// 1.开启定时任务
//@EnableScheduling
//// 2.开启多线程
//@EnableAsync
//public class MultithreadScheduleTask {
//
//
//	@Async
//	@Scheduled(fixedDelay = 1000)  //间隔1秒
//	public void first() throws InterruptedException {
//		log.info("第一个定时任务开始 : " + LocalDateTime.now().toLocalTime() + "\r\n线程 : " + Thread.currentThread().getName());
//		Thread.sleep(1000 * 10);
//	}
//
//	@Async
//	@Scheduled(fixedDelay = 2000)
//	public void second() {
//		log.info("第二个定时任务开始 : " + LocalDateTime.now().toLocalTime() + "\r\n线程 : " + Thread.currentThread().getName());
//	}
//}
