##quartz##项目中使用quartz做定时任务遇见的一些问题总结

本文总结了在项目中使用Quartz进行定时任务时遇到的配置问题,包括如何设置Quartz持久化以在数据库中创建表,以及解决因数据库大小写敏感导致的表找不到错误。在服务器部署时,可能会遇到MySQL配置不一致的问题,需要调整服务器的`lower_case_table_names`参数。若出现表名大小写不一致的情况,可通过修改数据库中表名的大小写来匹配控制台提示,确保Quartz正常运行。
摘要由CSDN通过智能技术生成

项目中使用quartz做定时任务遇见的一些问题总结

quartz做持久化配置:
在配置文件中加入这些配置信息就会在数据库生成quartz自带的表,一共11张表

spring.quartz.job-store-type=jdbc
spring.quartz.jdbc.initialize-schema=always
#spring.quartz.jdbc.initialize-schema=never
spring.quartz.properties.org.quartz.scheduler.instanceId=AUTO
spring.quartz.properties.org.quartz.jobStore.class=org.quartz.impl.jdbcjobstore.JobStoreTX
spring.quartz.properties.org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.StdJDBCDelegate
spring.quartz.properties.org.quartz.jobStore.useProperties=false
spring.quartz.properties.org.quartz.jobStore.tablePrefix=qrtz_
spring.quartz.properties.org.quartz.jobStore.misfireThreshold=60000
spring.quartz.properties.org.quartz.jobStore.clusterCheckinInterval=5000
spring.quartz.properties.org.quartz.jobStore.isClustered=true
spring.quartz.p

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值