1单个参数
使用@RequestParam("参数名") 或则@pathVariable("参数名")
2对象(单个对象)
使用@RequestBody
3其他
如果遇到不知支持PostMapping,GetMapping时(高版本的springboot 支持)
使用@RequestMapping(value="/路径",method = RequestMethod.GET或Post)
使用@RequestParam("参数名") 或则@pathVariable("参数名")
使用@RequestBody
如果遇到不知支持PostMapping,GetMapping时(高版本的springboot 支持)
使用@RequestMapping(value="/路径",method = RequestMethod.GET或Post)