SpringBoot版本:2.1.4
原因:
1、没在main函数上面追加:@EnableScheduling
2、@Scheduled未追加:(cron = "0/5 * * * * ?")
2、@Scheduled未追加:fixedRate 或 fixedDelay
SpringBoot版本:2.1.4
原因:
1、没在main函数上面追加:@EnableScheduling
2、@Scheduled未追加:(cron = "0/5 * * * * ?")
2、@Scheduled未追加:fixedRate 或 fixedDelay