In this tutorial, we’re gonna build a Spring Data REST example in Spring Boot CRUD REST API with Maven that uses Spring Data JPA to interact with H2 database without having to manually implement controller and handling HTTP requests. You’ll know:
- How to configure Spring Data REST, JPA, Hibernate to work with Database
- How to define Data Models and Repository interfaces
- Way to use Spring Data JPA to interact with H2 Database
- How to check CRUD operations with Postman
More Practice:
– Spring JPA @Query example
– JPA Repository query example | Derived Query
– JPA Native Query example
– Spring Boot Security Login example with JWT and H2 Database
– Spring Boot Rest XML example
– Spring Boot + GraphQL example
– Spring Boot Multipart File upload example
– Documentation: Spring Boot + Swagger 3 example (with OpenAPI 3)
– Caching: Spring Boot Redis Cache example
– Testing: Spring Boot Unit Test for JPA Repository
Associations:
– Spring Boot One To One example with JPA, Hibernate
– Spring Boot One To Many example with JPA, Hibernate
– Spring Boot Many to Many example with JPA, Hibernate