|  |  |  | 
|---|
|  |  |  | 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; | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 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(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|