定时任务开启

main
hshansha 1 month ago
parent d2a8e733b6
commit d6c6ea2af6

@ -46,7 +46,7 @@ public class KhVoteController extends BaseController {
@Autowired @Autowired
private IKhTemItemService khTemItemService; private IKhTemItemService khTemItemService;
/*@Scheduled(cron = "0 * * * * ?") // 每分钟的第0秒执行一次 监测时间修改评分状态 @Scheduled(cron = "0 * * * * ?") // 每分钟的第0秒执行一次 监测时间修改评分状态
public void performTask() { public void performTask() {
System.out.println("进入定时任务-------------------------------------------------------------"); System.out.println("进入定时任务-------------------------------------------------------------");
//获取所有未完成的评分任务 //获取所有未完成的评分任务
@ -97,7 +97,7 @@ public class KhVoteController extends BaseController {
} }
} }
}*/ }
/** /**
* *

Loading…
Cancel
Save