数据接收 POST请求,
localhost:8080/data/1/detail/101?name=zhangxueyou
请求体部分{name:zs,age:10}
@PostMapping("/data/{id}/detail/{id02}")
public void demo(@PathVariable("id") int id,
@PathVariable("id02") int id02,
@RequestParam String name,
@RequestBody Person person){
System.out.println(id);
System.out.println(id02);
System.out.println(name);
System.out.println(person);
}
后台接受数据