spring boot Required request parameter ‘xxx‘ for method parameter type xxx is not present
前端请求方式不同,后端处理方式不同content-Type为 application/x-www-form-urlencoded后端处理方式为@PostMapping("register")public R insertUser(User user){ return R.ok().data("data",UserService.save(user));}content-type 为application/json,返回结果为user对象的json字符