这是spring-boot中的错误。解决方法是,删除spring.quartz.job-store-
type属性,然后在定制程序中配置DataSource和PlatformTransactionManager。请参阅下面的更新代码:
@Configurationpublic class SchedulerConfig { private DataSource dataSource; private PlatformTransactionManager transactionManager; @Autowired public SchedulerConfig(@Qualifier("schedulerDataSource") DataSource dataSource, @Qualifier("schedulerTransactionManager") PlatformTransactionManager transactionManager) { this.dataSource = dataSource; this.transactionManager = transactionManager; } @Bean public SchedulerFactoryBeanCustomizer schedulerFactoryBeanCustomizer() { return bean -> { bean.setDataSource(dataSource); bean.setTransactionManager(transactionManager); }; }}


