JSON.toJSONString(实体类)和JSON.parseObject(String, xxx.class)和JSON.parseArray(JSONArray,xxx.class )
/***新增学生**@paramrequest*@return*/@ResponseBody@PostMapping("/create")publicJSONObjectcreate(HttpServletRequestrequest){//学生基本信息Studentstudent=newStudent();student.setStu1stName(request.getParameter("s