In this articles we’ll go through some of the basics of Spring Data REST and see an example of using Spring Boot with Spring Data REST. Table of contents Spring Data REST Using @RepositoryRestResource to customize REST endpoints Changing the Base URI Accessing Data JPA custom query Using @RestResource annotation to change query method path Spring Data REST Spring Data REST builds on top of the Spring Data repositories and automatically exports those as REST endpoints. It takes the features of Spring HATEOAS and Spring Data and automatically combines them together. In the Spring Boot + Spring Data JPA + MySQL + Spring RESTful example you can see how using Spring Data JPA requires that you just create a Repository interface. No need to write DAO implementation classes Spring takes care of automatically implementing this repository interface. Spring Data REST goes one step further, you don’t even need to create a Controller class with mappings (GET,
Java, Spring, Web development tutorials with examples