Skip to content

URI Templates in @RequestMapping [SPR-5251] #9925

Closed
@spring-projects-issues

Description

@spring-projects-issues

Arjen Poutsma opened SPR-5251 and commented

A URI template is a URI-like string, containing one or more variable names. When these variables are substituted for values, the template becomes a URI. See the proposed RFC at http://bitworking.org/projects/URI-Templates/

We should allow for these URI templates to be used in @Controllers, something like:

@RequestMapping(value="/hotels/{hotel}", method=RequestMethod.GET)
public void updateHotel(@PathVariable("hotel")long id)


This issue is a sub-task of #9097

Referenced from: commits fe72e8a, efb0ab7, 27ed13f, bb51503, 90ef764, b33db73

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: taskA general task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions