|
@@ -29,7 +29,10 @@ public class ScheduleConfig
|
|
|
prop.put("org.quartz.threadPool.threadCount", "20");
|
|
|
prop.put("org.quartz.threadPool.threadPriority", "5");
|
|
|
// JobStore配置
|
|
|
- prop.put("org.quartz.jobStore.class", "org.quartz.impl.jdbcjobstore.JobStoreTX");
|
|
|
+ // SpringBoot在2.5.6版本之后就删除了关于Quartz相关的依赖
|
|
|
+ // prop.put("org.quartz.jobStore.class", "org.quartz.impl.jdbcjobstore.JobStoreTX");
|
|
|
+ // SpringBoot在2.5.6以后的版本删除了关于Quartz相关的依赖,修改org.quartz.jobStore.class
|
|
|
+ prop.put("org.quartz.jobStore.class", "org.springframework.scheduling.quartz.LocalDataSourceJobStore");
|
|
|
// 集群配置
|
|
|
prop.put("org.quartz.jobStore.isClustered", "true");
|
|
|
prop.put("org.quartz.jobStore.clusterCheckinInterval", "15000");
|