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 9591b79f..04e4d21d 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 @@ -111,7 +111,7 @@ public class ServiceZookeeperApiMetaManager implements ApiMetaManager { */ protected String buildMd5(List routeDefinitionList) { List routeIdList = routeDefinitionList.stream() - .map(GatewayRouteDefinition::toString) + .map(JSON::toJSONString) .sorted() .collect(Collectors.toList()); String md5Source = org.apache.commons.lang3.StringUtils.join(routeIdList, "");