• spring-boot-starter-quartz 2.5.6 之前使用org.quartz.impl.jdbcjobstore.JobStoreTX定义quartz的默认数据源支持,即如下配置:
org.quartz.jobStore.class=org.quartz.impl.jdbcjobstore.JobStoreTX

升级spring boot > 2.5.6的版本后将不再支持此方式进行配置默认数据源,需改为如下配置:

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

相关链接如下:

大致意思是自定义quartz的数据源后不再通过SchedulerFactoryBean设置数据源,未通过 Quartz 属性指定数据源时使用 LocalDataSourceJobStore指定数据源。

GitHub 加速计划 / sp / spring-boot
17
5
下载
spring-projects/spring-boot: 是一个用于简化Spring应用开发的框架。适合用于需要快速开发企业级Java应用的项目。特点是可以提供自动配置、独立运行和内置的Tomcat服务器,简化Spring应用的构建和部署。
最近提交(Master分支:4 个月前 )
cce509c7 The property is named 'spring.jooq.config' and is of type Resource, so that it supports classpath: and all the other common prefixes. The config is loaded through JAXB. If JAXB is not on the classpath, an exception is thrown. Also adds a failure analyzer for this exception. Closes gh-38778 13 小时前
b9bab7a9 Closes gh-43976 14 小时前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐