SpringMVC中Restful风格参数的获取 实际上就是参数的获取换了另外一种方式 @RequestMapping(value = "/quick5/{username}/{age}") @ResponseBody public void quick5(@PathVariable(value = "username") String username , @PathVariable(value = "age")int age){ System.out.println(username); System.out.println(age); }