Seth 6 gadus atpakaļ
vecāks
revīzija
349f796397

+ 2
- 2
src/main/java/io/zipcoder/crudapp/PersonController.java Parādīt failu

@@ -20,9 +20,9 @@ public class PersonController {
20 20
     }
21 21
 
22 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 28
     @RequestMapping(value = "/people/{id}", method = GET)