diff --git a/dubbo-admin/src/main/java/com/alibaba/dubbo/governance/web/common/interceptor/RestfuleUrlRewriter.java b/dubbo-admin/src/main/java/com/alibaba/dubbo/governance/web/common/interceptor/RestfuleUrlRewriter.java index 9810eae5153..c930d5830a2 100644 --- a/dubbo-admin/src/main/java/com/alibaba/dubbo/governance/web/common/interceptor/RestfuleUrlRewriter.java +++ b/dubbo-admin/src/main/java/com/alibaba/dubbo/governance/web/common/interceptor/RestfuleUrlRewriter.java @@ -101,7 +101,7 @@ public void postSubstitution(RewriteSubstitutionContext context) { return; } //兼容包含group的path - String[] split = (String[]) temp.toArray(); + String[] split = (String[]) temp.toArray(new String[temp.size()]); if(temp.size()>2&&temp.contains("services")){ List parts = new ArrayList();