Fix prefix issue

This commit is contained in:
Dave Syer
2017-04-24 13:28:44 +01:00
parent b80ce1fb3e
commit 5055369cb5
2 changed files with 4 additions and 1 deletions

View File

@@ -81,6 +81,9 @@ public class FunctionHandlerMapping extends RequestMappingHandlerMapping
}
String path = (String) request
.getAttribute(HandlerMapping.PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE);
if (path.startsWith(prefix)) {
path = path.substring(prefix.length());
}
if (path == null) {
return handler;
}