@PathVariable、@RequestParam、@RequestBody、@ResponseBody、RequestEntity、ResponseEntity
@PathVariable当使用@RequestMappingURItemplate样式映射时,@PathVariable能使传过来的参数绑定到路由上,这样比较容易写出restfulapi,看代码@RequestMapping(value="/{id}",method=RequestMethod.GET)publicList>getUser(@PathVariableIntegerid){retu