2012-09-19 80 views
2

我正在尝试使用postgreSQL将石英预定作业存储在数据库中。spring with quartz.properties

数据库名称为“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 

有人能告诉我什么是错?

回答