我正在尝试使用postgreSQL将石英预定作业存储在数据库中。
数据库名称为“testdb”,架构为“testschema”。我有以下quartz.properties。我有以下quartz.properties,但我收到此错误消息“org.postgresql.util.PSQLException:错误:关系”quartz_triggers“不存在”。
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.class = org.quartz.impl.jdbcjobstore.JobStoreTX
org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.StdJDBCDelegate
org.quartz.jobStore.dataSource = myDS
org.quartz.jobStore.tablePrefix = quartz_
org.quartz.dataSource.myDS.driver = org.postgresql.Driver
org.quartz.dataSource.myDS.URL = jdbc:postgresql://localhost:5432/postgres
org.quartz.dataSource.myDS.user = postgres
org.quartz.dataSource.myDS.password = welcome123
org.quartz.dataSource.myDS.maxConnections 10
有谁能告诉我出了什么问题?
答案 0 :(得分:2)
首先,您必须运行在数据库中创建石英表的安装脚本。
这些文件位于完整的石英jar文件(/ docs / dbTables)
中以下是文档:http://quartz-scheduler.org/documentation/quartz-2.x/tutorials/tutorial-lesson-09
微米。