Merge branch 'master' into registry-nacos

This commit is contained in:
tanghc
2019-07-29 15:25:22 +08:00

View File

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