Skip to content

devparthgarg/h2-database

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot H2 Integration Demo

This is a simple Java Spring Boot project demonstrating integration with an in-memory H2 database. It includes two REST APIs to manage employee records.

Features

  • In-memory H2 Database integration
  • API to create an employee
  • API to retrieve all employees
  • Easy access to H2 Console for data inspection

Running the Application

  1. Start the Spring Boot application.
  2. Open the H2 console in your browser:

API Endpoints

Add Employee

curl --location 'http://localhost:8080/v1/create' \
--header 'Content-Type: application/json' \
--data '{
    "name":"Manvi"
}'

Get All Employees

curl --location 'http://localhost:8080/v1/get/all'

About

H2 Database Integration in Spring Boot Application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages