|
|
@@ -12,9 +12,9 @@ public class PersonController {
|
|
12
|
12
|
@Autowired
|
|
13
|
13
|
PersonRepository personRepository;
|
|
14
|
14
|
|
|
15
|
|
- @PostMapping("/create")
|
|
16
|
|
- public ResponseEntity<Person> create (Person person) {
|
|
17
|
|
- return new ResponseEntity<>(this.personRepository.save(person), HttpStatus.OK);
|
|
18
|
|
- }
|
|
|
15
|
+// @PostMapping("/create")
|
|
|
16
|
+// public ResponseEntity<Person> create (Person person) {
|
|
|
17
|
+// return new ResponseEntity<>(this.personRepository.save(person), HttpStatus.OK);
|
|
|
18
|
+// }
|
|
19
|
19
|
|
|
20
|
20
|
}
|