springboot项目中整合了定时器任务后控制台总是报错

createtime字段在实体类中是string类型,数据库中也是varchar2类型,set的时候也是给的string类型,不懂为什么在项目运行时,控制台时不时得报这个错,但是创建任务以及任务执行却都没问题,这是什么情况。

2023-02-07 16:21:37.686 ERROR [,,,] 3760 --- [_MisfireHandler] o.s.s.quartz.LocalDataSourceJobStore : MisfireHandler: Error handling misfires: Couldn't retrieve trigger: cannot assign instance of java.util.Date to field io.com.modules.job.entity.ScheduleJobEntity.createTime of type java.lang.String in instance of io.com.modules.job.entity.ScheduleJobEntity

org.quartz.JobPersistenceException: Couldn't retrieve trigger: cannot assign instance of java.util.Date to field io.com.modules.job.entity.ScheduleJobEntity.createTime of type java.lang.String in instance of io.com.modules.job.entity.ScheduleJobEntity

img

img

img

不知道你这个问题是否已经解决, 如果还没有解决的话:

如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^