漏掉了注解@RequestBody
public Result save(@RequestBody EmployeeDTO employeeDTO){//把漏掉的@RequestBody加上
log.info("新增员工:{}",employeeDTO);
employeeService.save(employeeDTO);
return Result.success();
}
重新启动项目,前端重新发送请求,可以看到传过来的值不为空