通过@RequestBody 接受外部传来的参数,遇到这个错误。 检查下 Controller 层方法是否使用 @GetMapping,因为 @GetMapping 不支持 @RequestBody ,修改成 @PostMapping 即可。