This is a Spring Boot project designed to manage employee data. It provides RESTful APIs for creating, updating, retrieving, and deleting employee information. The project uses H2 as an in-memory database, integrates Swagger for API documentation, and follows best practices in REST API design.
- Create Employee: Add new employees to the system.
- Update Employee: Update existing employee details.
- Get Employee(s): Retrieve employee data by ID or get all employees with pagination.
- Delete Employee: Remove employees from the system.
- Exception Handling: Centralized exception handling using
@RestControllerAdvice
. - Swagger Integration: For API documentation and testing.
- In-Memory H2 Database: For development and testing purposes.
- Java 21
- Spring Boot 3.0+
- Spring Data JPA
- H2 Database
- Swagger (Springdoc OpenAPI)
- Maven
- Java 21+
- Maven
- IDE (e.g., IntelliJ, Eclipse)
git clone <repository-url>
cd employee-management-system
# Swagger UI Path
springdoc.swagger-ui.path=/swagger-ui/index.html#/
