liyong
2 天以前 88ae1e650fc2fc30928edfe8f3cc39108d8d1ccd
src/main/java/com/ruoyi/inspectiontask/service/impl/QuartzConfig.java
@@ -1,8 +1,8 @@
package com.ruoyi.inspectiontask.service.impl;
import lombok.RequiredArgsConstructor;
import org.quartz.Scheduler;
import org.quartz.spi.TriggerFiredBundle;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.config.AutowireCapableBeanFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
@@ -15,13 +15,12 @@
@Configuration
@RequiredArgsConstructor
public class QuartzConfig {
    @Autowired
    private ApplicationContext applicationContext;
    private final ApplicationContext applicationContext;
    // 假设已配置名为dataSource的数据源Bean
    @Autowired
    private DataSource dataSource;
    private final DataSource dataSource;
    @Bean
    public SchedulerFactoryBean schedulerFactoryBean() {