Seth 6 年之前
父節點
當前提交
349f796397
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/main/java/io/zipcoder/crudapp/PersonController.java

+ 2
- 2
src/main/java/io/zipcoder/crudapp/PersonController.java 查看文件

@@ -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)