//package org.jeecg.config;
//
//
//import net.javacrumbs.shedlock.core.LockProvider;
//import net.javacrumbs.shedlock.provider.jdbctemplate.JdbcTemplateLockProvider;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//import javax.sql.DataSource;
//import java.util.concurrent.Executors;
//import java.util.concurrent.ScheduledExecutorService;
//
//@Configuration
//public class ScheduledLockConfig {
//
//    @Bean
//    public LockProvider lockProvider(DataSource dataSource) {
//        return new JdbcTemplateLockProvider(dataSource);
//    }
//
//    @Bean(destroyMethod = "shutdown")
//    public ScheduledExecutorService setTaskExecutors(){
//        return Executors.newScheduledThreadPool(10);
//    }
//}
