-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement
Milestone
Description
Rossen Stoyanchev opened SPR-8826 and commented
Add an @MVC-specific
UriComponentsBuilder either as part of the ServletUriComponentsBuilder, or perhaps as a new subclass. One benefit is being able to point to an @Controller
method instead of specifying a path. Something like:
MvcUriComponentsBuilder ucb = MvcUriComponentsBuilder.fromServletMapping();
ucb.path(MyController.class, "handle");
where "handle()" is an @Controller
method annotated with @RequestMapping
.
Another possible benefit is to add required request parameters to the query string, use of current request URI template variables when expanding, and formatting of expanded arguments with a DataBinder.
Affects: 3.1 RC1
Issue Links:
- Add ServletUriComponentsBuilder [SPR-8823] #13465 Add ServletUriComponentsBuilder
- Document ability to create links to Spring MVC controller methods [SPR-11118] #15744 Document ability to create links to Spring MVC controller methods
- Migrate core Hateoas concepts from Spring Hateoas [SPR-10665] #15293 Migrate core Hateoas concepts from Spring Hateoas ("supersedes")
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement