This commit is contained in:
tanghc
2019-11-26 14:59:04 +08:00
parent baace8f53e
commit 2e88574284

View File

@@ -57,7 +57,7 @@ public class ApiMetaBuilder {
continue;
}
String key = apiMeta.fetchNameVersion();
if (store.contains(key)) {
if (!apiMeta.isOriginalMapping() && store.contains(key)) {
throw new IllegalArgumentException("重复申明接口请检查path和versionpath:" + apiMeta.getPath() + ", version:" + apiMeta.getVersion());
} else {
store.add(key);