From 187c4daa241e0ca5e57366a55158b65821da7872 Mon Sep 17 00:00:00 2001 From: zrlw Date: Thu, 16 May 2024 17:28:36 +0800 Subject: [PATCH] make mapping key unique by add group and version to it --- .../main/java/org/apache/dubbo/metadata/ServiceNameMapping.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dubbo-metadata/dubbo-metadata-api/src/main/java/org/apache/dubbo/metadata/ServiceNameMapping.java b/dubbo-metadata/dubbo-metadata-api/src/main/java/org/apache/dubbo/metadata/ServiceNameMapping.java index 91fce3cef42..21ae0c511a3 100644 --- a/dubbo-metadata/dubbo-metadata-api/src/main/java/org/apache/dubbo/metadata/ServiceNameMapping.java +++ b/dubbo-metadata/dubbo-metadata-api/src/main/java/org/apache/dubbo/metadata/ServiceNameMapping.java @@ -61,7 +61,7 @@ static ServiceNameMapping getDefaultExtension(ScopeModel scopeModel) { } static String buildMappingKey(URL url) { - return buildGroup(url.getServiceInterface()); + return buildGroup(url.getColonSeparatedKey()); } static String buildGroup(String serviceInterface) {