解决pg数据库 定时任务报错无法运行:
1.新建一个类继承 org.quartz.impl.jdbcjobstore.PostgreSQLDelegate
2.子类重写方法
protected void setBoolean(PreparedStatement ps, int index, boolean val) throws SQLException {
ps.setInt(index, ((val) ? 1 : 0));
}
3.修改yml文件 spring.quartz.properties.org.quartz.jobStore.driverDelegateClass
的值 为步骤1新建的类(全路径)
pg(postgresql)数据库,定时任务quartz-2.3.2集成无法运行解决方法
最新推荐文章于 2025-05-07 09:27:15 发布