SpringBoot定时任务只有Scheduled实现
SPringBoot 定时任务(Scheduled实现)
第一步在运行类上添加开启定时任务注解 (EnableScheduling)
package com.lcy.demo5;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure
原创
2020-08-24 18:06:24 ·
165 阅读 ·
0 评论