| | |
| | | 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; |
| | |
| | | @SpringBootApplication |
| | | @EnableAspectJAutoProxy |
| | | @ComponentScan(basePackages = {"com.dy.common", "com.dy.pmsGlobal", "com.dy.pmsProduct"}) |
| | | @MapperScan(basePackages={"com.dy.pmsGlobal.daoBa", "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(); |
| | | } |
| | | } |
| | | |
| | | } |