RequestPredicates
is broken in Spring WebFlux.
@Bean
public RouterFunction<ServerResponse> myRouter() {
return RouterFunctions.route()
.path("route", this::routerFunction)
.build();
}
private RouterFunction<ServerResponse> routerFunction() {
return RouterFunctions.route()
.GET("path/{input}", RequestPredicates.path("*/1?")), this::myHandler)
.build();
}
Sending a request to route/path/15
fails with 404.
Same config works just fine with Spring Boot 3.2.0.