Skip to content

MariomEmu/SpringBoot_CURD_-BookApplication-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“š Spring Boot Book CRUD Application

This project is a Spring Boot application demonstrating CRUD (Create, Read, Update, Delete) operations on a Book entity.
It shows how to build RESTful APIs using Spring Boot, Spring Data JPA, and an in-memory H2 database.


πŸš€ Features

  • Create a new book record
  • Read all books or a single book by ID
  • Update existing book details
  • Delete a book record
  • RESTful API design following best practices
  • Uses Spring Boot, JPA, and H2 database for simplicity

πŸ› οΈ Tech Stack

  • Backend Framework: Spring Boot
  • Database: H2 (in-memory) / MySQL (optional)
  • Persistence: Spring Data JPA
  • Build Tool: Maven
  • Java Version: 17+ (can adjust if needed)

πŸ“‚ Project Structure

src/main/java/com/example/bookcrud
 β”œβ”€β”€ controller       # REST controllers
 β”œβ”€β”€ entity           # JPA entities
 β”œβ”€β”€ repository       # Data repositories
 β”œβ”€β”€ service          # Business logic layer
 └── BookApplication.java   # Main class

πŸ“· API Demo (CRUD Operations)

βž• Create (POST)

CRUD - POST

πŸ“– Read (GET)

CRUD - GET

✏️ Update (PUT)

CRUD - PUT

❌ Delete (DELETE)

CRUD - DELETE


πŸ—„οΈ H2 Database View

H2 Database

H2 Database

About

Spring Boot Book CRUD Application project. This project is a Spring Boot application demonstrating CRUD (Create, Read, Update, Delete) operations on a Book entity. It shows how to build RESTful APIs using Spring Boot, Spring Data JPA, and an in-memory H2 database.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages