In this tutorial we walk through the steps to add a database connection to our rest api. Previously we created a rest api using spring. We used mock data but now we use real data from a database.
In this tutorial we look at creating a JSON web service using Spring. Spring can using simple java classes to create a application quickly. Annotations do all the hard work for you. Here we create a rest controller which responds to GET, PUT, POST, DELETE request.