开启定时任务,每隔一分钟更新任务列表
This commit is contained in:
parent
425f6d30a6
commit
c0b0138ddb
|
@ -48,8 +48,8 @@ public class ShangTangController {
|
||||||
*/
|
*/
|
||||||
@RequestMapping("insertTaskList")
|
@RequestMapping("insertTaskList")
|
||||||
@ApiOperation("场景任务列表插入")
|
@ApiOperation("场景任务列表插入")
|
||||||
//@Scheduled(cron = "0 */1 * * * ?")
|
@Scheduled(cron = "0 */1 * * * ?")
|
||||||
//@Transactional
|
@Transactional
|
||||||
public void insertTaskList(){
|
public void insertTaskList(){
|
||||||
|
|
||||||
taskListControllerDao.deleteAll();
|
taskListControllerDao.deleteAll();
|
||||||
|
|
Loading…
Reference in New Issue