tanghc 5 years ago
parent a068210300
commit f828ce40e8
  1. 2
      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<GatewayRouteDefinition> routeDefinitionList) { protected String buildMd5(List<GatewayRouteDefinition> routeDefinitionList) {
List<String> routeIdList = routeDefinitionList.stream() List<String> routeIdList = routeDefinitionList.stream()
.map(GatewayRouteDefinition::toString) .map(JSON::toJSONString)
.sorted() .sorted()
.collect(Collectors.toList()); .collect(Collectors.toList());
String md5Source = org.apache.commons.lang3.StringUtils.join(routeIdList, ""); String md5Source = org.apache.commons.lang3.StringUtils.join(routeIdList, "");

Loading…
Cancel
Save