본문 바로가기
Spring/이론

rest api로@RestController //get/post/put/delete로 == > DB CRUD하기

by SEOKIHOUSE 2023. 8. 1.

configuration process추가


  • GET

  • 전체조회
  • http://localhost:8090/member


  • 개별조회
  • http://localhost:8090/member/2


  • POST방식
  • http://localhost:8090/member
  • {
      "name" : "짱구18", 
      "id" : "1818",
      "pw" : "1818"
    }


  • PUT방식
  • http://localhost:8090/member
  • {
      "name" : "짱구18", 
      "pw" : "1818",
      "mno" : 1
    }


  • DELETE방식
  • http://localhost:8090/member/1

practice0801_RestApi.zip
0.09MB