2

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

誰が何が悪いのか教えてもらえますか?

4

1 に答える 1

2

まず、データベースにクォーツテーブルを作成するインストールスクリプトを実行する必要があります。

これらのファイルは、完全なクォーツjarファイル(/ docs / dbTables)で入手できます。

ドキュメントは次のとおりです:http://quartz-scheduler.org/documentation/quartz-2.x/tutorials/tutorial-lesson-09

M。

于 2012-09-24T13:35:51.633 に答える