@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);
}
}


Reply With Quote

