添加pom依赖
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-quartz</artifactId></dependency><dependency><groupId>com.alibaba</groupId><artifactId>druid</artifactId><version>1.1.17</version></dependency>
yml文件配置
spring:quartz:# 调度器实例名称scheduler-name: scheduler-test# quartz任务存储类型:jdbc或memory