升级spring-boot-starter-quartz 2.5.7之后解决SchedulerConfigException(“DataSource name not set.“)错误记录

将quatz.propeties文件中

org.quartz.jobStore.class=org.quartz.impl.jdbcjobstore.JobStoreTX

改为


org.quartz.jobStore.class=org.springframework.scheduling.quartz.LocalDataSourceJobStore

即可成功启动
大致意思是自定义quartz的数据源后不再通过SchedulerFactoryBean设置数据源,未通过 Quartz 属性指定数据源时使用 LocalDataSourceJobStore指定数据源。
本文引用自以下链接
https://blog.csdn.net/weixin_42458219/article/details/122247162

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐