Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我该如何使用Timer类调度方法?我的要求是我将在调度方法中编写的任务每天运行一次。有人可以为该方法写下所需的签名吗?
一天24小时,一小时60分钟,一分钟60秒,一秒1000毫秒
scheduleAtFixedRate(yourTask, initialDelay, 24 * 60 * 60 * 1000);