spring boot bean配置:

@Configuration
publicclassQuartzConfig{

@Value("${quartz.scheduler.instanceName}")
privateString;

@Value("${org.quartz.dataSource.myDS.driver}")
privateString;

@Value("${org.quartz.dataSource.myDS.URL}")
privateString;

@Value("${org.quartz.dataSource.myDS.user}")
privateString;

@Value("${org.quartz.dataSource.myDS.password}")
privateString;

@Value("${org.quartz.dataSource.myDS.maxConnections}")
privateString;


/**
* 设置属性
* @return
* @throws IOException
*/
privateProperties()throwsIOException{
Properties=newProperties();
prop.put("quartz.scheduler.instanceName",);
prop.put("org.quartz.scheduler.instanceId","AUTO");
prop.put("org.quartz.scheduler.skipUpdateCheck","true");
prop.put("org.quartz.scheduler.jmx.export","true");

prop.put("org.quartz.jobStore.class","org.quartz.impl.jdbcjobstore.JobStoreTX");
prop.put("org.quartz.jobStore.driverDelegateClass","org.quartz.impl.jdbcjobstore.StdJDBCDelegate");
prop.put("org.quartz.jobStore.dataSource","quartzDataSource");
prop.put("org.quartz.jobStore.tablePrefix","QRTZ_");
prop.put("org.quartz.jobStore.isClustered","true");

prop.put("org.quartz.jobStore.clusterCheckinInterval","20000");
prop.put("org.quartz.jobStore.dataSource","myDS");
prop.put("org.quartz.jobStore.maxMisfiresToHandleAtATime","1");
prop.put("org.quartz.jobStore.misfireThreshold","120000");
prop.put("org.quartz.jobStore.txIsolationLevelSerializable","true");
prop.put("org.quartz.jobStore.selectWithLockSQL","SELECT * FROM {0}LOCKS WHERE LOCK_NAME = ? FOR UPDATE");

prop.put("org.quartz.threadPool.class","org.quartz.simpl.SimpleThreadPool");
prop.put