| | |
| | | package com.yeshi.fanli.job;
|
| | |
|
| | | import javax.annotation.Resource;
|
| | | import org.springframework.stereotype.Component;
|
| | |
|
| | | import org.quartz.Job;
|
| | | import org.quartz.JobExecutionContext;
|
| | | import org.quartz.JobExecutionException;
|
| | | @Component
|
| | | public class TestJob {
|
| | |
|
| | | import com.yeshi.fanli.log.LogHelper;
|
| | | import com.yeshi.fanli.service.inter.config.ConfigService;
|
| | |
|
| | | //从淘宝爬去订单更新
|
| | | public class TestJob implements Job {
|
| | |
|
| | | @Resource
|
| | | private ConfigService configService;
|
| | |
|
| | | @Override
|
| | | public void execute(JobExecutionContext arg0) throws JobExecutionException {
|
| | | System.out.println("执行任务");
|
| | | LogHelper.test("-执行任务-");
|
| | | configService.get("123");
|
| | | public TestJob() {
|
| | | System.out.println("TestJob");
|
| | | }
|
| | | }
|