RouterFunctionMapping does not implement MatchableHandlerMapping, which causes an IllegalStateException to occur here. It should be trivial to implement, as RouterFunctionMapping already has a PathPatternParser to expose.