pull/1/head
tanghc 5 years ago
parent baace8f53e
commit 2e88574284
  1. 2
      sop-common/sop-service-common/src/main/java/com/gitee/sop/servercommon/manager/ApiMetaBuilder.java

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

Loading…
Cancel
Save