Springboot开启异步任务 在启动类加上**@EnableAsync**注解在要开启异步的方法上加上**@Async**注解 Springboot开启定时任务 在启动类加上**@EnableScheduling**注解在要开启定时任务的方法上加上**@Scheduled**注解,注解记得加上cron表达式