Create DSL for RouterFunction and RouterFunctions [SPR-16953] #21491
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Arjen Poutsma opened SPR-16953 and commented
We should add a (Java) DSL to org.springframework.web.servlet.function that makes it easier to discover the routing possibilities that all the request predicates offer.
So, instead of writing
where both
route
andGET
are statically imported, it should be more discoverable.For instance, by introducing a builder with methods that directly express common request predicates, eg.
routeGET(String, HandlerFunction)
instead ofroute(RequestPredicate, HandlerFunction
.Issue Links:
Referenced from: commits 91e96d8, 8202052
The text was updated successfully, but these errors were encountered: