xiaoyong931011
2021-07-15 8aaf0cc9486d6ba0f0a6124017d7877ada577723
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package com.xzx.gc;
 
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import tk.mybatis.spring.annotation.MapperScan;
 
@EnableAsync
@EnableScheduling
@MapperScan({"com.xzx.gc.*.mapper"})
@SpringBootApplication
@Slf4j
public class GcOrderApplication extends SpringBootServletInitializer implements CommandLineRunner {
 
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(GcOrderApplication.class);
    }
 
    public static void main(String[] args) {
        SpringApplication.run(GcOrderApplication.class, args);
    }
 
 
    @Override
    public void run(String... args) throws Exception {
//        CronUtil.setMatchSecond(true);
//        CronUtil.setCronSetting("job.properties");
//        CronUtil.start();
    }
}