Seth 6 years ago
parent
commit
349f796397
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/main/java/io/zipcoder/crudapp/PersonController.java

+ 2
- 2
src/main/java/io/zipcoder/crudapp/PersonController.java View File

20
     }
20
     }
21
 
21
 
22
     @RequestMapping(value = "/people", method = POST)
22
     @RequestMapping(value = "/people", method = POST)
23
-    public Person createPerson(@RequestBody Person p){
23
+    public void createPerson(@RequestBody Person p){
24
 
24
 
25
-       return personRepository.save(p);
25
+        personRepository.save(p);
26
     }
26
     }
27
 
27
 
28
     @RequestMapping(value = "/people/{id}", method = GET)
28
     @RequestMapping(value = "/people/{id}", method = GET)