标签: spring spring-boot kotlin scheduled-tasks
我希望我的程序每天凌晨5点在启动时从API下载。有没有办法做到这一点?
@Scheduled(cron = "0 0 5 * * *", zone = "Europe/Oslo") fun scheduledDL(link: String) { val xmlString = downloader.download(link) }