*)

@RequestMapping(value="/xxx/{id}",method={RequestMethod.GET})

 method 不写的话,默认GET、POST都支持,根据前端方式自动适应

 

相关文章: