This commit is contained in:
Phillip Webb
2018-02-28 10:42:47 -08:00
parent 67998e983f
commit 7bc535e4fa
13 changed files with 111 additions and 129 deletions

View File

@@ -95,8 +95,7 @@ public class ControllerEndpointHandlerMapping extends RequestMappingHandlerMappi
ExposableControllerEndpoint endpoint, RequestMappingInfo mapping) {
Set<PathPattern> patterns = mapping.getPatternsCondition().getPatterns();
if (patterns.isEmpty()) {
patterns = new HashSet<>(
Arrays.asList(getPathPatternParser().parse("")));
patterns = new HashSet<>(Arrays.asList(getPathPatternParser().parse("")));
}
PathPattern[] endpointMappedPatterns = patterns.stream()
.map((pattern) -> getEndpointMappedPattern(endpoint, pattern))