postgresql - heroku springboot quratz prostgesql 错误原因:org.postgresql.util.PSQLException:错误:关系“qrtz_locks”不存在
问题描述
当尝试在 heroku 中部署 springboot 石英 postgresesql 时遇到以下错误,
使用相同的配置,应用程序从我的 ide 连接到 postgrese 没有任何问题,任何帮助将不胜感激。
## QuartzProperties
spring.quartz.job-store-type=jdbc
spring.quartz.properties.org.quartz.threadPool.threadCount=5
spring.quartz.jdbc.initialize-schema=never
spring.quartz.jdbc.schema=pw
org.springframework.context.ApplicationContextException: Failed to start bean 'quartzScheduler'; nested exception is org.springframework.scheduling.SchedulingException: Could not start Quartz Scheduler; nested exception is org.quartz.SchedulerConfigException: Failure occured during job recovery. [See nested exception: org.quartz.impl.jdbcjobstore.LockException: Failure obtaining db row lock: ERROR: current transaction is aborted, commands ignored until end of transaction block [See nested exception: org.postgresql.util.PSQLException: ERROR: current transaction is aborted, commands ignored until end of transaction block]]
Caused by: org.postgresql.util.PSQLException: ERROR: relation "qrtz_locks" does not exist
解决方案
推荐阅读
- java - 如何在我的鼓组程序中实现 KeyListener?
- python-3.x - Python Crash 课程第 13 章“对象没有属性 '_sprite__g'”——抱歉,如果重复……看了但找不到答案
- reactjs - 如何使用相同的组件进行创建和更新
- google-sheets - 仅当另一个单元格中有某个字符时才求和或计数
- android - Firebase 控制台中 Cloud Firestore 控制台的网址是什么?
- java - 未能通知项目评估侦听器。org.gradle.api.tasks.SourceSetOutput.getClassesDir()Ljava/io/File;
- c# - 尝试在 Windows 窗体中修改滚轮的自定义事件
- javascript - 我如何处理我的 redux 减速器的反应?
- rest - REST api返回404时如何使用readEntity解析json
- import - 是否可以将预训练模型加载到 spacy 中?