본문 바로가기
Spring

[TIL] 231212 Spring CRUD 만들기 복습

by studymode 2023. 12. 12.

C : create

R : read

U : update

D : delete

 

Create 

@PostMapping

@RequestBody로 받아옴

 

Read

@GetMapping

@RequestParam (uri 통해서 value 받아옴)

@PathVariable(uri 통해서 내용 받아옴)

 

Update

@PutMapping / @PatchMapping

@RequestBody

@PathVariable

 

Delete

@DeleteMapping

@PathVariable