From 52cd9c6cacde83dd0ca31a2716885b100c4dc4a9 Mon Sep 17 00:00:00 2001 From: dreis2211 Date: Sat, 6 Apr 2019 13:40:00 +0200 Subject: [PATCH] Fix compilation error Closes gh-16476 --- .../reactive/AbstractWebFluxEndpointHandlerMapping.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/web/reactive/AbstractWebFluxEndpointHandlerMapping.java b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/web/reactive/AbstractWebFluxEndpointHandlerMapping.java index 85dee9b5d2..98d42c50c1 100644 --- a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/web/reactive/AbstractWebFluxEndpointHandlerMapping.java +++ b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/web/reactive/AbstractWebFluxEndpointHandlerMapping.java @@ -22,6 +22,7 @@ import java.util.Collection; import java.util.Collections; import java.util.LinkedHashMap; import java.util.Map; +import java.util.Set; import java.util.function.Supplier; import org.reactivestreams.Publisher; @@ -65,6 +66,7 @@ import org.springframework.web.reactive.result.method.RequestMappingInfo; import org.springframework.web.reactive.result.method.RequestMappingInfoHandlerMapping; import org.springframework.web.server.ResponseStatusException; import org.springframework.web.server.ServerWebExchange; +import org.springframework.web.util.pattern.PathPattern; import org.springframework.web.util.pattern.PathPatternParser; /** @@ -212,6 +214,11 @@ public abstract class AbstractWebFluxEndpointHandlerMapping return null; } + @Override + protected Set getMappingPathPatterns(RequestMappingInfo mapping) { + return mapping.getPatternsCondition().getPatterns(); + } + /** * Return the Handler providing actuator links at the root endpoint. * @return the links handler