From 343f3fb917a56273a9e7b88acad525b3312a7c96 Mon Sep 17 00:00:00 2001 From: xyiege Date: Sat, 16 Jul 2022 00:09:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=85=8D=E7=BD=AE=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 +++- src/main/resources/application.properties | 19 ++++++++++++++++++- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 679c155..9bf6809 100644 --- a/README.md +++ b/README.md @@ -57,4 +57,6 @@ eyJhbGciOiJIUzUxMiJ9.eyJhdWQiOiJCRDg0REQ0MkE3MjM0QjA1QjBDNUQxMTYxNjEzMkFDNCIsImp 17、[Springboot整合Quartz实现动态定时任务](https://segmentfault.com/a/1190000016554033) -18、[Quartz定时任务2.3版本数据库表字段说明](https://blog.csdn.net/qq_30859353/article/details/120533838) \ No newline at end of file +18、[Quartz定时任务2.3版本数据库表字段说明](https://blog.csdn.net/qq_30859353/article/details/120533838) + +19、[Quartz定时器可视化管理功能的简单实现](https://www.cnblogs.com/pypua/articles/9945487.html) \ No newline at end of file diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 67d02ce..80f884e 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -29,4 +29,21 @@ spring.quartz.scheduler-name=SzwhScheduler org.quartz.simpl.SimpleThreadPool=10 # #org.quartz.simpl.RAMJobStore -org.quartz.jobStore.class = org.quartz.simpl.RAMJobStore +#org.quartz.jobStore.class = org.quartz.simpl.RAMJobStore +org.quartz.scheduler.instanceName= DefaultQuartzScheduler +org.quartz.scheduler.rmi.export= false +org.quartz.scheduler.rmi.proxy= false +org.quartz.scheduler.wrapJobExecutionInUserTransaction= false + +#定义线程池的数量 +org.quartz.threadPool.class=org.quartz.simpl.SimpleThreadPool +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 +#持久化配置 +org.quartz.jobStore.class=org.quartz.impl.jdbcjobstore.JobStoreTX +org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.StdJDBCDelegate \ No newline at end of file