Fancy
2024-07-10 fb8c436457dbe87b47120c82e5a82539ffc0c821
pms-parent/pms-web-product/src/main/java/com/dy/pmsProduct/PmsProductApplication.java
@@ -1,5 +1,7 @@
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;
@@ -9,11 +11,17 @@
@SpringBootApplication
@EnableAspectJAutoProxy
@ComponentScan(basePackages = {"com.dy.common", "com.dy.pmsGlobal", "com.dy.pmsProduct"})
@MapperScan(basePackages={"com.dy.pmsGlobal.daoPr"})
@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();
        }
    }
}