Announcement Announcement Module
Collapse
No announcement yet.
@MatrixVariable dons't work!!!!!!! Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • @MatrixVariable dons't work!!!!!!!

    @MatrixVariable dons't work!!!!!!!
    in release version 3.2.0.M2
    In the following code, use such dir: /pets/22;q=12
    will not fire the code.

    @Controller
    public class HomeController
    {
    static final String HOME = "home";

    @RequestMapping(value = "/")
    public String home()
    {
    System.out.println("HomeController: Passing through...");
    return HOME;
    }


    @RequestMapping(value = "/pets/{petId}", method = RequestMethod.GET)
    public void findPet(@PathVariable
    String petId, @MatrixVariable
    int q)
    {
    System.out.println("Name=" + petId + ", age=" + q);
    }

    }

  • #2
    Please use [ code][/code ] tags when posting code...

    Post your configuration next to only dumping your code.

    Comment


    • #3
      Originally posted by kinorsi View Post
      @MatrixVariable dons't work!!!!!!!
      And your keyboard is defect!!!!!111!

      offtopic: What's the sence of matrix params compared to query params?

      Comment

      Working...
      X