开启定时任务,每隔一分钟更新任务列表

This commit is contained in:
JunheZhang 2022-06-01 10:55:36 +08:00
parent 425f6d30a6
commit c0b0138ddb
1 changed files with 2 additions and 2 deletions

View File

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