Creating a REST Service
Learn about the ease and simplicity of development using Spring Boot by creating a REST controller.
We'll cover the following
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.
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.