刘小明
2024-07-09 f37449146d61a49388f557210cad944f032efefe
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
package com.dy.pmsProduct;
 
import com.dy.common.schedulerTask.SchedulerTaskSupport;
import com.dy.common.schedulerTask.Test;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
 
@SpringBootApplication
@EnableAspectJAutoProxy
@ComponentScan(basePackages = {"com.dy.common", "com.dy.pmsGlobal", "com.dy.pmsProduct"})
@MapperScan(basePackages={"com.dy.pmsGlobal.dao*"})
public class PmsProductApplication {
 
    public static void main(String[] args) {
        SpringApplication.run(PmsProductApplication.class, args);
        try {
            SchedulerTaskSupport.addSecondlyJob("test", "testGroup", Test.class, null,
                    10, 1, -1) ;
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
 
}