-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Description
jakubdyszkiewicz opened SPR-17264 and commented
My team is in the middle of migrating our Spring MVC extensions to WebFlux.
We've got a feature that lets our clients customize metric of controller method. To do that we've created our annotation that is processed by HandlerInterceptorAdapter.
What's more, our metrics convention is a controller method name, not a path.
The problem is that I can't see any equivalent of this in Spring WebFlux. I can't use WebFilter because Spring does not know yet which endpoint will be called, therefore I can't process annotation. How can I implement that?
The closest workaround I found is to use RequestMappingHandlerMapping and somehow build a map of Map<String(path), HandlerMethod>, but this is cumbersome in my opinion
Thanks
Issue Links:
- Set BEST_MATCHING_HANDLER_ATTRIBUTE in WebFlux.fn [SPR-17367] #21900 Set BEST_MATCHING_HANDLER_ATTRIBUTE in WebFlux.fn
0 votes, 5 watchers