升级spring-boot-starter-quartz 2.5.7之后解决SchedulerConfigException(“DataSource name not set.“)错误记录。
spring-boot
spring-projects/spring-boot: 是一个用于简化Spring应用开发的框架。适合用于需要快速开发企业级Java应用的项目。特点是可以提供自动配置、独立运行和内置的Tomcat服务器,简化Spring应用的构建和部署。
项目地址:https://gitcode.com/gh_mirrors/sp/spring-boot
·
- 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
相关链接如下:
- https://hub.fastgit.org/spring-projects/spring-framework/issues/27709
- https://hub.fastgit.org/spring-projects/spring-boot/issues/28758
大致意思是自定义quartz的数据源后不再通过SchedulerFactoryBean设置数据源,未通过 Quartz 属性指定数据源时使用 LocalDataSourceJobStore指定数据源。
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 小时前
更多推荐




所有评论(0)