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
From the course: Spring Boot 2.0 Essential Training
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
Introduction to Spring Security6m 2s
-
Using Spring Security8m 7s
-
Introduction to messaging5m 10s
-
Spring message consumers10m 12s
-
Building Spring message producers5m 42s
-
Building Spring REST repositories3m
-
Using Spring Actuator3m 24s
-
Extending Actuator5m 22s
-
Building Spring Boot starters5m 19s
-