【SpringBoot】参数传递之RequestBody接收JSON数据
4.3.3 @RequestBody接收Json数据
@PostMapping(path = "/save2")
public String save2(@RequestBody Student student){
String firstName = student.getFirstName;
String lastName = student.getLastName;
return firstName+"" "+lastName;
}
原文地址:https://blog.csdn.net/wenhuakulv2008/article/details/140726861
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!