虽然springboot的定时任务中 @Scheduled(cron = xxx) 中xxx不能写变量,也不能写从配置文件中读取的变量,但是可以直接写成 @Scheduled(cron = "${xxx.yyy.zzzz.cron}") 这样的形式。