Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-11331

Improve documentation explaining how to enable MatrixVariable in Spring MVC

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 3.2.6
    • Fix Version/s: 3.2.7, 4.0.1
    • Component/s: None
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              snicoll St├ęphane Nicoll
              Reporter:
              leebm leebm
              Last updater:
              Spring Issues Spring Issues
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 37 weeks, 1 day ago