Creating a REST Controller

Learn how to create a controller to map requests to our REST API.

In this lesson, we will create a REST service with a request mapping /welcome and send it a request from a REST client (web browser or Postman). The service will respond with a welcome message.

@RestController

First, we will create a controller class called PlayerController ...

Access this course and 1400+ top-rated courses and projects.