Skip to content

Improve documentation explaining how to enable MatrixVariable in Spring MVC [SPR-11331] #15955

Closed
@spring-projects-issues

Description

@spring-projects-issues

leebm opened SPR-11331 and commented

example:

@RequestMapping(value = "/hello/{mes}", method = RequestMethod.GET)
	public String hello(
			@PathVariable String mes, Model model, 
			@MatrixVariable int age) {
		model.addAttribute("mes", mes);
		model.addAttribute("age", age);
		return "hello";
	}

url: http://localhost/s3/hello/hi;age=21
this url can't be matched.


Affects: 3.2.6

Issue Links:

Referenced from: commits cfa78a9, 175aa86, 98174e1

Backported to: 3.2.7

Metadata

Metadata

Assignees

Labels

status: backportedAn issue that has been backported to maintenance branchestype: taskA general task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions