From 45c8f0a8ff6287afce228ffdcb28d4c369a3bd0a Mon Sep 17 00:00:00 2001 From: HuangXin Date: Fri, 29 Oct 2021 12:21:14 +0800 Subject: [PATCH] =?UTF-8?q?OCT=20REM:=201.=20=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=A3=80=E6=B5=8B=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/dispose/restful/RestfulInterface.java | 2 +- src/main/java/com/dispose/task/RefreshConfigTask.java | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/dispose/restful/RestfulInterface.java b/src/main/java/com/dispose/restful/RestfulInterface.java index 216bfdc2..7ad6ef11 100644 --- a/src/main/java/com/dispose/restful/RestfulInterface.java +++ b/src/main/java/com/dispose/restful/RestfulInterface.java @@ -241,7 +241,7 @@ public class RestfulInterface { return createRespType(subClass); } }); - } catch (JsonProcessingException e) { + } catch (Exception e) { log.error("System exception: Request:{}, \n+++{}\n---{} Exception {}", url, reqJson, svrResp, e); return null; } diff --git a/src/main/java/com/dispose/task/RefreshConfigTask.java b/src/main/java/com/dispose/task/RefreshConfigTask.java index dd0e3773..ff571856 100644 --- a/src/main/java/com/dispose/task/RefreshConfigTask.java +++ b/src/main/java/com/dispose/task/RefreshConfigTask.java @@ -1,6 +1,5 @@ package com.dispose.task; -import com.dispose.common.DisposeConfigValue; import com.dispose.config.DeviceLogConfigure; import lombok.extern.slf4j.Slf4j; import org.springframework.scheduling.annotation.Async; @@ -8,11 +7,10 @@ import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; import javax.annotation.Resource; -import java.util.ArrayList; -import java.util.List; /** * The type Refresh config. + * * @author xajhu */ @Component