我正在尝试在我的应用程序中实现带有集群设置的石英插件,它是在Grails 3.1.9上构建的,我正在使用Postgresql DB。这是我的石英配置
\W
但我得到了这些错误;奇怪的是,异常似乎来自org.h2.command ...
quartz.pluginEnabled: true
quartz.jdbcStore: true
quartz.isClustered: true
quartz.autoStartup: false
quartz.waitForJobsToCompleteOnShutdown: true
quartz.scheduler.instanceName: "JobInstanceName"
quartz.purgeQuartzTablesOnStartup: false
quartz.threadPool.class: org.quartz.simpl.SimpleThreadPool
quartz.threadPool.threadCount: 10
quartz.threadPool.threadPriority: 5
quartz.jobStore.class: org.quartz.impl.jdbcjobstore.JobStoreTX
quartz.jobStore.misfireThreshold: 60000
quartz.jobStore.driverDelegateClass: org.quartz.impl.jdbcjobstore.PostgreSQLDelegate
quartz.jobStore.dataSource: 'quartzDB'
quartz.jobStore.isClustered: true
quartz.jobStore.tablePrefix: qrtz_
quartz.jobStore.useProperties: false
quartz.dataSource: 'quartzDB'
quartz.dataSource.quartzDB.driverClassName: "org.postgresql.Driver"
quartz.dataSource.quartzDB.driver: org.postgresql.Driver
quartz.dataSource.quartzDB.URL: jdbc:postgresql://localhost:5432/quartz_database
quartz.dataSource.quartzDB.user: username
quartz.dataSource.quartzDB.password: password
我已经创建了postgresql DB中所需的所有表,没有任何内容写入数据库。我不确定为什么org.h2会发生异常。有什么想法吗?
我正在使用org.grails.plugins:quartz:2.0.1