I am trying to figure out how to add query parameters to a route when using RouterFunctions. Here's what I have so far:
@Bean
public RouterFunction<ServerResponse> routes() {
return
RouterFunctions.route()
.GET("/one/{one}", routeHandlerOne::handlerOne)
.GET("/two", routeHandlerOne::handlerTwo)
.build();
}
For route two I want add a query parameter, like /two?three. Any help would be most helpful, thank you!