How abdul-majid-khan/springboot-demo works
This is a Spring Boot REST API for managing student records. The main workflow is an HTTP request through the student controller to service-level CRUD and duplicate-email checks, with repository persistence and response DTOs; create requests are validated and centralized exception handling formats errors. The README also documents MySQL persistence and Actuator support. Service, controller, DTO, entity, repository, and exception code were sampled; database configuration and Actuator wiring were not, so those relationships are documented rather than inferred from source.
Main entry points: StudentController.java Student Controller · StudentService.java Student Service · StudentRepository.java Student Repository · GlobalExceptionHandler.java Global Exception Handler
Components 12
REST API
- Student Controller
crudSpringBootDemo/src/main/java/in/strikes/crudSpringBootDemo/controller/StudentController.java - Request DTOs
crudSpringBootDemo/src/main/java/in/strikes/crudSpringBootDemo/dto - Success DTOs
crudSpringBootDemo/src/main/java/in/strikes/crudSpringBootDemo/dto
Student Domain
- Student Service
crudSpringBootDemo/src/main/java/in/strikes/crudSpringBootDemo/service/StudentService.java - Student Entity
crudSpringBootDemo/src/main/java/in/strikes/crudSpringBootDemo/entity/Student.java
Persistence
- Student Repository
crudSpringBootDemo/src/main/java/in/strikes/crudSpringBootDemo/repository/StudentRepository.java - MySQL Database
crudSpringBootDemo/src/main/resources/application.properties
Error Responses
- Global Exception Handler
crudSpringBootDemo/src/main/java/in/strikes/crudSpringBootDemo/exception/GlobalExceptionHandler.java - Error DTOs
crudSpringBootDemo/src/main/java/in/strikes/crudSpringBootDemo/dto - Domain Exceptions
crudSpringBootDemo/src/main/java/in/strikes/crudSpringBootDemo/exception
Platform
- Actuator
crudSpringBootDemo
Other components
- API Client
Connections 14
- API Client → Student Controller: sends HTTP
README.md - Student Controller → Request DTOs: binds request
crudSpringBootDemo/src/main/java/in/strikes/crudSpringBootDemo/controller/StudentController.java - Student Controller → Student Service: delegates CRUD
crudSpringBootDemo/src/main/java/in/strikes/crudSpringBootDemo/controller/StudentController.java - Student Service → Student Repository: queries and saves
crudSpringBootDemo/src/main/java/in/strikes/crudSpringBootDemo/service/StudentService.java - Student Repository → Student Entity: persists entity
crudSpringBootDemo/src/main/java/in/strikes/crudSpringBootDemo/repository/StudentRepository.java - Student Repository → MySQL Database: JPA persistence
README.md - Student Service → Student Entity: maps and updates
crudSpringBootDemo/src/main/java/in/strikes/crudSpringBootDemo/service/StudentService.java - Student Service → Domain Exceptions: throws domain errors
crudSpringBootDemo/src/main/java/in/strikes/crudSpringBootDemo/service/StudentService.java - Student Service → Success DTOs: maps result
crudSpringBootDemo/src/main/java/in/strikes/crudSpringBootDemo/service/StudentService.java - Student Controller → Success DTOs: returns payload
crudSpringBootDemo/src/main/java/in/strikes/crudSpringBootDemo/controller/StudentController.java - Student Controller → Global Exception Handler: validation errors
- Global Exception Handler → Domain Exceptions: handles exceptions
crudSpringBootDemo/src/main/java/in/strikes/crudSpringBootDemo/exception/GlobalExceptionHandler.java - Global Exception Handler → Error DTOs: builds error payloads
crudSpringBootDemo/src/main/java/in/strikes/crudSpringBootDemo/exception/GlobalExceptionHandler.java - API Client → Actuator: health access
README.md