Mapping Requests

Turning a URL and a verb into a method call, and a method's return value into a response.

  • 6 cards
  • 4 questions
  • About 6 min
  • Difficulty
Share

A REST controller's job is translating an HTTP request into a method call and a method's return value back into a response, and Spring Boot has a specific annotation for each piece of that translation. This topic is those annotations, and the small but consequential choice of which ResponseEntity factory method actually matches what happened.

Contents

6 cardsnot started