代码优化

1.x
tanghc 5 years ago
parent 82f7e2ba28
commit fb82f27a43
  1. 3
      sop-common/sop-service-common/src/main/java/com/gitee/sop/servercommon/manager/ServiceZookeeperApiMetaManager.java
  2. 1
      sop-common/sop-service-common/src/main/java/com/gitee/sop/servercommon/param/ApiArgumentResolver.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);

@ -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;
}

Loading…
Cancel
Save