摘要: 计时任务实现 //参数说明:线程池参数,要执行的方法,初始延迟时间,周期时间,时间单位 new ScheduledThreadPoolExecutor(1).scheduleAtFixedRate(() -> { System.out.println("hello world"); }, 0, 5, 阅读全文
posted @ 2021-05-09 19:32 随风EK 阅读(309) 评论(0) 推荐(0)