최대 1 분 소요

Path Variables

REST CRUD APIs(5)

  • Retrieve a single student by id GET -> /api/students{studentId} <- Retrieve a single student (Known as a ‘path variable’) like /api/students/0 , /api/students/1, /api/students/2

Spring REST Service

Behind the scenes

Development Process

  1. Add request mapping to Spring REST Service

    Bind path variable to method parameter using @PathVariable

출처 luv2code.com

댓글남기기