Skip to content

bezkoder/spring-boot-h2-database-crud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 / Angular 16 / Angular 17 Client

Vue 2 Client / Vue 3 Client / Vuetify Client

React Client / React Redux Client

More Practice:

Spring Boot Validate Request Body

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

Spring Boot Rest Controller Unit Test with @WebMvcTest

Cache the result: Spring Boot Redis Cache example

Documentation: Spring Boot with Swagger 3 example

Reactive Rest API: Spring Boot WebFlux example

Deploy Spring Boot App on AWS – Elastic Beanstalk

Exception Handling:

Spring Boot @ControllerAdvice & @ExceptionHandler example

@RestControllerAdvice example in Spring Boot

Associations:

Spring Boot One To One example with Spring JPA, Hibernate

Spring Boot One To Many example with Spring JPA, Hibernate

Spring Boot Many To Many example with Spring JPA, Hibernate

Other databases:

Spring Boot JPA + MySQL: CRUD Rest API example

Spring Boot JPA + PostgreSQL: CRUD Rest 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

Angular 16 + Spring Boot example

Angular 17 + 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

mvn spring-boot:run

About

Spring Boot H2 Database CRUD example with Spring JPA, Spring Web MVC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages