jlinn / quartz-redis-jobstore

A Quartz Scheduler JobStore using Redis.
Apache License 2.0
137 stars 66 forks source link

Add support for Spring Boot configuration #53

Open diman82 opened 4 years ago

diman82 commented 4 years ago

Please add support for Spring Boot type configuration (so that usage of quartz.properties fiel can be dropped).

huangbotao commented 3 years ago

Please add support for Spring Boot type configuration (so that usage of quartz.properties fiel can be dropped).

1.1.14 was support SpringBoot configuration, you can add quartz.properties config conten to application.properties like this:

spring.quartz.properties.org.quartz.jobStore.class=net.joelinn.quartz.jobstore.RedisJobStore
spring.quartz.properties.org.quartz.jobStore.host=10.x.x.x
spring.quartz.properties.org.quartz.jobStore.clusterCheckinInterval=10000

spring.quartz.properties.org.quartz.scheduler.instanceName=QuartzScheduler
spring.quartz.properties.org.quartz.scheduler.instanceId=AUTO

spring.quartz.properties.org.quartz.threadPool.class=org.quartz.simpl.SimpleThreadPool
spring.quartz.properties.org.quartz.threadPool.threadCount=5
spring.quartz.properties.org.quartz.threadPool.threadPriority=5
spring.quartz.properties.org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread=true

things like that: add prefix spring.quartz.properties to quartz.properties items