quartz.properties的位置:

Quartz(4):quartz.properties配置文件介绍

 

 可以自定义quartz.properties文件,去修改quartz的默认配置

默认的quartz.properties

# Default Properties file for use by StdSchedulerFactory
# to create a Quartz Scheduler Instance, if a different
# properties file is not explicitly specified.
#

#用来区分特定的调度实例,如正在使用群集功能,则必须对群集中“逻辑上”相同的调度程序的每个实例使用相同的名称,重新赋值该值
org.quartz.scheduler.instanceName: DefaultQuartzScheduler
org.quartz.scheduler.rmi.export: false
org.quartz.scheduler.rmi.proxy: false
#设置这项为true使我们在调用job的execute()之前能够开始一个UserTransaction。
org.quartz.scheduler.wrapJobExecutionInUserTransaction: false

#quartz自带的线程池实现类
org.quartz.threadPool.class: org.quartz.simpl.SimpleThreadPool
#处理job的线程个数,必须大于等于1
org.quartz.threadPool.threadCount: 10
#线程的优先级,默认即可
org.quartz.threadPool.threadPriority: 5
#自创建父线程
org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread: true
#作业最大延迟时间毫秒
org.quartz.jobStore.misfireThreshold: 60000

#数据保存方式为持久化
org.quartz.jobStore.class: org.quartz.simpl.RAMJobStore 

相关文章:

  • 2021-05-18
  • 2021-09-22
  • 2022-01-06
  • 2021-09-26
  • 2021-07-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-04
  • 2022-12-23
  • 2021-06-26
  • 2021-08-07
相关资源
相似解决方案