为什么Quartz没有写入mysql默认石英表?

问题描述 投票:0回答:1

我正在使用弹簧靴2和石英,飞路用于桌子创作。当我安排工作时,没有任何东西进入db。有任何想法吗?我的石英配置在配置应用程序中。有人可以正确yml quartz配置文件。

问候

spring-boot quartz-scheduler
1个回答
0
投票

使用spring boot应用程序配置Quartz。

org.quartz.scheduler.instanceId = AUTO
org.quartz.scheduler.makeSchedulerThreadDaemon = true
org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool
org.quartz.threadPool.makeThreadsDaemons = true
org.quartz.threadPool.threadCount: 20
org.quartz.threadPool.threadPriority: 5
org.quartz.jobStore.class = org.quartz.impl.jdbcjobstore.JobStoreTX 
org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.StdJDBCDelegate
org.quartz.jobStore.tablePrefix = QRTZ_
org.quartz.jobStore.isClustered = false
org.quartz.jobStore.dataSource = myDs
org.quartz.jobStore.misfireThreshold = 25000


# Configure Datasources  

参考本演示。

https://www.opencodez.com/java/quartz-scheduler-with-spring-boot.htm https://github.com/davidkiss/spring-boot-quartz-demo

© www.soinside.com 2019 - 2024. All rights reserved.