@@ -20,9 +20,9 @@ public class PersonController {
}
@RequestMapping(value = "/people", method = POST)
- public Person createPerson(@RequestBody Person p){
+ public void createPerson(@RequestBody Person p){
- return personRepository.save(p);
+ personRepository.save(p);
@RequestMapping(value = "/people/{id}", method = GET)