package com.ruoyi.system.controller; import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.system.service.IDmPlayerTaskGroupService; import com.ruoyi.system.service.IDmPlayerentService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; // @RestController @RequestMapping("/system/global") public class GlobalController { @Autowired private IDmPlayerentService dmPlayerentService; @Autowired private IDmPlayerTaskGroupService dmPlayerTaskGroupService; @GetMapping(value = "/close-http-client") public AjaxResult closeHttpClient() { dmPlayerentService.closeHttpClient(); dmPlayerTaskGroupService.closeHttpClient(); return AjaxResult.success(true); } }