quartz配置文件设置不当导致报错

一、问题描述

如果数据库用的是pgsql且在quartz.properties文件中设置org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.StdJDBCDelegate
这时服务启动会报错:Couldn't retrieve trigger: 不良的类型值 long : \x [See nested exception: org.postgresql.util.PSQLException

二、解决方法

将quartz.properties文件中的org.quartz.jobStore.driverDelegateClass设置成如下格式:org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.PostgreSQLDelegate


版权声明:本文为huajian0843原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。