Spring Boot H2 Database CRUD example: Building Rest API with Spring Data JPA
For more detail, please visit:
Spring Boot JPA + H2 example: Build a CRUD Rest APIs
In this tutorial, we're gonna build a Spring Boot Rest CRUD API example with Maven that use Spring Data JPA to interact with H2 database. You'll know:
- How to configure Spring Data, JPA, Hibernate to work with Database
- How to define Data Models and Repository interfaces
- Way to create Spring Rest Controller to process HTTP requests
- Way to use Spring Data JPA to interact with H2 Database
Front-end that works well with this Back-end
Angular 8 / Angular 10 / Angular 11 / Angular 12 / Angular 13 / Angular 14 / Angular 15 Client
Vue 2 Client / Vue 3 Client / Vuetify Client
React Client / React Redux Client
More Practice:
Spring Boot File upload example with Multipart File
Spring Boot Pagination & Filter example | Spring JPA, Pageable
Spring Data JPA Sort/Order by multiple Columns | Spring Boot
Spring Boot Repository Unit Test with @DataJpaTest
Deploy Spring Boot App on AWS – Elastic Beanstalk
Spring Boot with Swagger 3 example
Exception Handling:
Spring Boot @ControllerAdvice & @ExceptionHandler example
@RestControllerAdvice example in Spring Boot
Other databases:
Spring Boot JPA + MySQL - Building Rest CRUD API example
Spring Boot JPA + PostgreSQL - Building Rest CRUD API example
Security:
Spring Boot + Spring Security JWT Authentication & Authorization
Fullstack:
Vue + Spring Boot example
Angular 8 + Spring Boot example
Angular 10 + Spring Boot example
Angular 11 + Spring Boot example
Angular 12 + Spring Boot example
Angular 13 + Spring Boot example
Angular 14 + Spring Boot example
Angular 15 + Spring Boot example
React + Spring Boot + MySQL example
React + Spring Boot + PostgreSQL example
Run both Back-end & Front-end in one place:
Integrate Angular with Spring Boot Rest API
Integrate React.js with Spring Boot Rest API
Integrate Vue.js with Spring Boot Rest API
Run Spring Boot application