@PathVariable,@RequestParam, @RequestBody,@ModelAttribute,@RequestHeader,@CookieValue的区别
@RequestMapping(value="/owners/{ownerId}/pets/{petId}/edit",method=RequestMethod.POST)
publicStringprocessSubmit(@ModelAttributePetpet){
}请求路径上有个id的变量值,可以通过@PathVariable来获取 @RequestMapping(value="/pa