@Configuration @AutoConfigureAfter(value=org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration.class) public class QuartzConfig extends Object implements org.springframework.boot.ApplicationRunner
| 构造器和说明 |
|---|
QuartzConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.quartz.ee.servlet.QuartzInitializerListener |
executorListener() |
QuartzManager |
quartzManager() |
Properties |
quartzProperties() |
void |
run(org.springframework.boot.ApplicationArguments args) |
org.quartz.Scheduler |
scheduler(org.springframework.scheduling.quartz.SchedulerFactoryBean schedulerFactoryBean) |
org.springframework.scheduling.quartz.SchedulerFactoryBean |
schedulerFactoryBean(DataSource dataSource) |
public void run(org.springframework.boot.ApplicationArguments args)
throws Exception
run 在接口中 org.springframework.boot.ApplicationRunnerException@Bean public QuartzManager quartzManager()
@Bean
@ConditionalOnProperty(name="quartz.open-cluster",
havingValue="true")
@DependsOn(value={"springContextHolder","dataSource"})
public org.springframework.scheduling.quartz.SchedulerFactoryBean schedulerFactoryBean(DataSource dataSource)
throws IOException
IOException@Bean
@ConditionalOnProperty(name="quartz.open-cluster",
havingValue="true")
public Properties quartzProperties()
throws IOException
IOException@Bean
@ConditionalOnProperty(name="quartz.open-cluster",
havingValue="true")
public org.quartz.ee.servlet.QuartzInitializerListener executorListener()
public org.quartz.Scheduler scheduler(org.springframework.scheduling.quartz.SchedulerFactoryBean schedulerFactoryBean)
throws IOException
IOExceptionCopyright © 2018. All rights reserved.