A simple and clean CRUD (Create, Read, Update, Delete) REST API built with Spring Boot, demonstrating how to manage student records using MySQL, Spring Data JPA, and Lombok for boilerplate-free code.
This project covers:
- β Spring Boot project setup from scratch
- β Connecting to MySQL database
- β
Creating REST APIs using
@RestController - β Performing full CRUD operations
- β Integrating with Spring Data JPA
- β Reducing boilerplate code using Project Lombok
- β Testing endpoints using Postman
- β Add new student
- π View all students
- βοΈ Update student details
- β Delete student by ID
- β Java 17+
- π Spring Boot
- π¦ Spring Data JPA
- ποΈ MySQL
- β¨ Lombok
- π Postman
src/
βββ main/
βββ java/
β βββ com/
β βββ crud/
β βββ student_ms_a/
β βββ model/
β β βββ Student.java
β βββ StudentController/
β β βββ StudentController.java
β βββ StudentRep/
β β βββ StudentRepo.java
β βββ StudentMsAApplication.java
βββ resources/
β βββ static/
β βββ templates/
β βββ application.properties