From the course: Spring Boot 2.0 Essential Training

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Building Spring REST repositories

Building Spring REST repositories

From the course: Spring Boot 2.0 Essential Training

Start my 1-month free trial

Building Spring REST repositories

- [Instructor] There's a construct from Spring Data that we didn't discuss in either the web services or the data conversations, but if you are writing a lot of simple data web services, they can prove to be really quick at getting things up and operational. This construct is called Spring Data REST Repositories. Now we're not going to go too deep into them, instead just showing them because they are worth seeing. So I want you to navigate to your web application and we're going to go to the room-web-app. Let's open up the POM file and let's add another dependency, and this one is spring-boot-starter-data-rest from org.springframework.boot. We'll run Maven. Now, once that is done, let's go to Source Main, Resources, and open up our application.properties file. We're going to put in a value here, spring.data.rest.base-path, and we're going to set it equal to api/rest. This way we can differentiate between the other…

Contents