Creating a REST Service

Learn about the ease and simplicity of development using Spring Boot by creating a REST controller.

Let’s have a look at how to create a REST service using Spring Boot. We will define a controller for movie recommendations to return a few hard coded values when the URI http://localhost:8080/movies is accessed. The HTTP GET request for the above URI will be mapped to a controller method which returns a JSON response.

Get hands-on with 1400+ tech skills courses.