Commit a90df11a by fengshuonan

开启定时任务放到配置里

parent 39e6283f
......@@ -21,7 +21,6 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
/**
* SpringBoot方式启动类
......@@ -30,7 +29,6 @@ import org.springframework.scheduling.annotation.EnableScheduling;
* @Date 2017/5/21 12:06
*/
@SpringBootApplication(exclude = {WebAutoConfiguration.class, MybatisDataSourceAutoConfiguration.class})
@EnableScheduling
public class GunsApplication {
private final static Logger logger = LoggerFactory.getLogger(GunsApplication.class);
......
......@@ -13,6 +13,7 @@ import org.springframework.scheduling.quartz.SchedulerFactoryBean;
* @Date 2019/2/24 16:23
*/
//@Configuration
//@EnableScheduling
public class SchedulingConfig {
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment