A simple Java-based Student Management System using Spring Boot, H2 Database, and Lombok.
This project demonstrates basic CRUD (Create, Read, Update, Delete) operations for managing student data.
- Add new students
- Update existing student details
- Delete students
- View all students
- Uses H2 in-memory database
- Implements Lombok for cleaner code
- Email validation included
- Java 21
- Spring Boot
- H2 Database
- Lombok
- Maven for dependency management
-
Clone the repository:
git clone https://github.com/DevbBhatt/student-management-system.git
-
Build the project: mvn clean install
-
Run the Spring Boot application: mvn spring-boot:run
API Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /students |
Get all students |
| GET | /students/{id} |
Get student by ID |
| POST | /students |
Add new student |
| PUT | /students/{id} |
Update student info |
| DELETE | /students/{id} |
Delete student |
Project Structure
src/main/java
└─ com.example.sms
├─ controller # REST API endpoints
├─ model # Student entity
├─ repository # Spring Data JPA repository
├─ service # Business logic
└─ StudentManagementSystemApplication.java