We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I've written a simple create method for the Employee entity, but attributes of the object received are null:
@RequestMapping(value = "/employees", method = RequestMethod.POST, consumes = MediaTypes.HAL_JSON_VALUE) public Employee create(Employee employee){ return repository.save(employee); }
@RequestMapping(value = "/employees", method = RequestMethod.POST, consumes = MediaTypes.HAL_JSON_VALUE)
public Employee create(Employee employee){
return repository.save(employee);
}
Could you please update the repo with such a simple but working example or at least try to explain what could be the issue here? Thank you very much!
The text was updated successfully, but these errors were encountered:
The input is missing @RequestBody annotation.
@RequestBody
Sorry, something went wrong.
gregturn
No branches or pull requests
Hi,
I've written a simple create method for the Employee entity, but attributes of the object received are null:
@RequestMapping(value = "/employees", method = RequestMethod.POST, consumes = MediaTypes.HAL_JSON_VALUE)
public Employee create(Employee employee){
return repository.save(employee);
}
Could you please update the repo with such a simple but working example or at least try to explain what could be the issue here? Thank you very much!
The text was updated successfully, but these errors were encountered: