提交 f156d50b authored 作者: yangli's avatar yangli

.

上级 5392be1d
......@@ -20,6 +20,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import javax.validation.constraints.NotNull;
import java.io.File;
......@@ -53,6 +54,16 @@ public class RemoteControlController {
@Resource
private InstalledProgramCache installedProgramCache;
@PostConstruct
public void init() {
try {// 关闭VNC Server服务的自启动
Runtime.getRuntime().exec("cmd /c sc config uvnc_service start= demand");
} catch (IOException e) {
log.error("初始化失败", e);
}
}
/**
* 前端定时任务查询远程控制请求,true则表示有请求,展示确认弹窗
*/
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论