Results 1 to 3 of 3

Thread: @MatrixVariable dons't work!!!!!!!

Hybrid View

  1. #1
    Join Date
    Oct 2012
    Posts
    1

    Exclamation @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. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    Please use [ code][/code ] tags when posting code...

    Post your configuration next to only dumping your code.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3
    Join Date
    Mar 2007
    Posts
    561

    Default

    Quote 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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •