From fb82f27a43e5f492ac3799475da5d09bf0e86b0d Mon Sep 17 00:00:00 2001 From: tanghc Date: Wed, 24 Jul 2019 16:43:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../servercommon/manager/ServiceZookeeperApiMetaManager.java | 3 +-- .../com/gitee/sop/servercommon/param/ApiArgumentResolver.java | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/sop-common/sop-service-common/src/main/java/com/gitee/sop/servercommon/manager/ServiceZookeeperApiMetaManager.java b/sop-common/sop-service-common/src/main/java/com/gitee/sop/servercommon/manager/ServiceZookeeperApiMetaManager.java index 351d0096..09a01b63 100644 --- a/sop-common/sop-service-common/src/main/java/com/gitee/sop/servercommon/manager/ServiceZookeeperApiMetaManager.java +++ b/sop-common/sop-service-common/src/main/java/com/gitee/sop/servercommon/manager/ServiceZookeeperApiMetaManager.java @@ -166,9 +166,8 @@ public class ServiceZookeeperApiMetaManager implements ApiMetaManager { * @return 返回文件夹路径 */ protected String uploadFolder(ServiceRouteInfo serviceRouteInfo) throws Exception { - String serviceId = serviceRouteInfo.getServiceId(); // 保存路径 - String savePath = routeRootPath + "/" + serviceId; + String savePath = routeRootPath + "/" + serviceRouteInfo.getServiceId(); String serviceRouteInfoJson = JSON.toJSONString(serviceRouteInfo); log.info("上传service目录到zookeeper,路径:{},内容:{}", savePath, serviceRouteInfoJson); this.zookeeperTool.createOrUpdateData(savePath, serviceRouteInfoJson); diff --git a/sop-common/sop-service-common/src/main/java/com/gitee/sop/servercommon/param/ApiArgumentResolver.java b/sop-common/sop-service-common/src/main/java/com/gitee/sop/servercommon/param/ApiArgumentResolver.java index c2a7d5f4..ddf3d09b 100644 --- a/sop-common/sop-service-common/src/main/java/com/gitee/sop/servercommon/param/ApiArgumentResolver.java +++ b/sop-common/sop-service-common/src/main/java/com/gitee/sop/servercommon/param/ApiArgumentResolver.java @@ -122,7 +122,6 @@ public class ApiArgumentResolver implements SopHandlerMethodArgumentResolver { } if (methodArgumentResolver.supportsParameter(parameter)) { result = methodArgumentResolver; - System.out.println(parameter + " " + result.getClass().getName()); this.argumentResolverCache.put(parameter, result); break; }