This commit is contained in:
hongqiaowei
2020-12-02 17:08:08 +08:00
parent 3c74848e1d
commit 081677ed1b
2 changed files with 6 additions and 0 deletions

View File

@@ -39,6 +39,7 @@
<lettuce.version>5.3.5.RELEASE</lettuce.version>
<nacos.version>0.2.7</nacos.version>
<netty.version>4.1.54.Final</netty.version>
<httpcore.version>4.4.14</httpcore.version>
<log4j2.version>2.13.3</log4j2.version>
</properties>

View File

@@ -145,6 +145,11 @@ public class ServiceConfig {
} else {
Collections.sort(matchPathPatterns, antPathMatcher.getPatternComparator(reqPath));
String bestPattern = matchPathPatterns.get(0);
if (log.isDebugEnabled()) {
log.debug("\nreq path: " + reqPath +
"\nmatch patterns: " + matchPathPatterns +
"\nbest one: " + bestPattern);
}
return getApiConfig1(method, path2methodToApiConfigMapMap.get(bestPattern));
}
}