启动失败的问题 屮

This commit is contained in:
wangliwen 2022-09-20 17:26:57 +08:00
parent da74a124e2
commit e9cb2e061a
1 changed files with 5 additions and 1 deletions

View File

@ -115,12 +115,16 @@ public class MonitorService {
if (e.getStatusCode() == HttpStatus.UNAUTHORIZED) { if (e.getStatusCode() == HttpStatus.UNAUTHORIZED) {
String responseString = e.getResponseBodyAsString(); String responseString = e.getResponseBodyAsString();
reponse = JSONObject.parseObject(responseString, HashMap.class); reponse = JSONObject.parseObject(responseString, HashMap.class);
} else {
reponse = null;
} }
} catch (Exception exception) {
reponse = null;
} }
if (reponse == null) { if (reponse == null) {
log.error("[monitor-capture]:" + "监控系统登录握手失败"); log.error("[monitor-capture]:" + "监控系统登录握手失败");
throw new RuntimeException("监控系统登录握手失败"); return;
} }
//登录 //登录