一、问题描述
如果数据库用的是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