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