when spring-boot-starter-actuator imported to my project :

Spring getHandlerInternal repeated lookup for HandlerMethod

there are 6 members in org.springframework.web.reactive.DispatcherHandler#handlerMappings. Part of those HandlerMappings are subclass of org.springframework.web.reactive.result.method.RequestMappingInfoHandlerMapping, which caused repeated call of org.springframework.web.reactive.result.method.AbstractHandlerMethodMapping#getHandlerInternal to lookup HandlerMethod.

  • AdditionalHealthEndpointPathsWebFluxHandlerMapping

Spring getHandlerInternal repeated lookup for HandlerMethod

  • WebFluxEndpointHandlerMapping

Spring getHandlerInternal repeated lookup for HandlerMethod

  • ControllerEndpointHandlerMapping

Spring getHandlerInternal repeated lookup for HandlerMethod

and so on.

this is my solution: https://github.com/spring-projects/spring-framework/pull/29589

Comment From: rstoyanchev

I don't understand what the problem is. Each HandlerMapping has its own registrations, and HandlerMappings are invoked in order until one of them returns a match. If the second is called, it means the ones before didn't find a match. Or, if the first one finds a match, then the second one is not called.

Comment From: spring-projects-issues

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Comment From: spring-projects-issues

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.