This commit is contained in:
shuzheng 2017-03-19 00:47:41 +08:00
parent 063742cbd9
commit d3e55a60ed
4 changed files with 18 additions and 29 deletions

View File

@ -320,7 +320,7 @@ zheng-ui、zheng-common => zheng-upms => 其他
### 预览图
![login](project-bootstrap/zheng-login.png)
![upms](project-bootstrap/zheng-upms.png)
![cms](zheng-ui/src/images/zheng-cms.png)
![cms](project-bootstrap/zheng-cms.png)
![swagger](project-bootstrap/api.png)
### 数据模型

View File

@ -1,8 +0,0 @@
package com.zheng.cms.web.task;
/**
* Created by ZhangShuzheng on 2016/11/1.
*/
public interface TestTask {
public void test();
}

View File

@ -0,0 +1,17 @@
package com.zheng.cms.web.task;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
/**
* Created by ZhangShuzheng on 2016/11/1.
*/
@Component
public class TestTaskImpl {
@Scheduled(cron = "0 0/10 * * * ?")
public void test() {
System.out.println("Task");
}
}

View File

@ -1,20 +0,0 @@
package com.zheng.cms.web.task.impl;
import com.zheng.cms.web.task.TestTask;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
/**
* Created by ZhangShuzheng on 2016/11/1.
*/
@Component
public class TestTaskImpl implements TestTask {
//@Scheduled(cron = "0 12 17 07 12 ?") 12月7日17点12分0秒执行
@Scheduled(cron = "0 0/1 * * * ?")
@Override
public void test() {
System.out.println("Task");
}
}