完善项目
This commit is contained in:
@@ -48,6 +48,12 @@ public class NbaController {
|
||||
log.info("执行定时方法添加当天赛程");
|
||||
return nbaApi.addGames();
|
||||
}
|
||||
@Scheduled(cron = "0 0 0 * * ?")
|
||||
@RequestMapping("/updateLive")
|
||||
public void updateLive() {
|
||||
log.info("执行定时方法更新当天赛程直播链接");
|
||||
|
||||
}
|
||||
@RequestMapping("/games")
|
||||
public List<Games> getGames() {
|
||||
log.info("获取所有赛程");
|
||||
|
||||
Reference in New Issue
Block a user