#org.quartz.jobStore.useProperties:true #org.quartz.scheduler.instanceName: quartzScheduler #org.quartz.scheduler.instanceId = AUTO org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool org.quartz.threadPool.threadCount = 15 org.quartz.threadPool.threadPriority: 5 org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread: true #spring boot > 2.5.6 不再支持org.quartz.impl.jdbcjobstore.JobStoreTX默认获取 要修改为下面的方式进行配置默认数据源 org.quartz.jobStore.class = org.springframework.scheduling.quartz.LocalDataSourceJobStore #非PGSQL时需要切换 #org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.StdJDBCDelegate #PGSQL 打开下面两行注释 org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.PostgreSQLDelegate # 设置为false(默认)防止异常:JobDataMap values must be Strings when the 'useProperties' property is set. #org.quartz.jobStore.useProperties = true #mssql\u914d\u7f6e #org.quartz.jobStore.selectWithLockSQL=SELECT * FROM {0}LOCKS WITH(UPDLOCK) WHERE LOCK_NAME = ? org.quartz.jobStore.isClustered = true #org.quartz.jobStore.clusterCheckinInterval=20000 org.quartz.jobStore.tablePrefix = qrtz_ org.quartz.jobStore.misfireThreshold = 60000 org.quartz.jobStore.maxMisfiresToHandleAtATime = 20 org.quartz.scheduler.rmi.export = false org.quartz.scheduler.rmi.proxy = false org.quartz.scheduler.wrapJobExecutionInUserTransaction = false