Skip to content

Khushbu696/Leave_Management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leave Management System

A Spring Boot-based leave management application with user authentication, employee management, and leave request workflows.

Overview

This project provides a simple leave management system built with Spring Boot, Spring Security, Spring Data JPA, and JSP views. It supports user signup/login, employee data handling, leave requests, and administrative leave approval.

Preview

User Dashboard

User Dashboard

Admin Dashboard

Admin Dashboard

Key Features

  • User authentication and registration
  • Employee profile management
  • Submit and track leave requests
  • Leave approval workflow for admins
  • JSP-based views for the front-end
  • MySQL persistence with Spring Data JPA

Tech Stack

  • Java 21
  • Spring Boot 4
  • Spring Security
  • Spring Data JPA
  • Maven
  • MySQL
  • JSP / JSTL
  • Tomcat embedded Jasper
  • Lombok

Project Structure

  • src/main/java/com/example/leavemanagement
    • config - security configuration
    • controller - web controllers for auth, employee, leave, and view routing
    • dto - data transfer objects for login and leave requests
    • model - domain entities such as User, Employee, Leave, Role, LeaveStatus
    • repository - JPA repositories
    • service - business logic for authentication, employee, and leave management
  • src/main/resources/templates - JSP templates for login, signup, dashboard, leave history, and application pages

Prerequisites

  • Java 21 SDK
  • Maven 3.8+
  • MySQL database

Database Setup

  1. Create a MySQL database.
  2. Update src/main/resources/application.properties with your MySQL username,password and database name.

Running the Application

From the project root:

./mvnw spring-boot:run

On Windows:

.
\mvnw.cmd spring-boot:run

Then open:

http://localhost:8080/login-page

Usage

  • Access the login page and sign in with existing credentials.
  • Use the signup page to create a new account.
  • Employees can submit leave requests and view request history.
  • Admin users can review and approve or reject leave requests.

Notes

  • The current configuration uses spring.jpa.hibernate.ddl-auto=update to automatically manage schema updates.
  • Ensure your MySQL server is running before starting the application.

About

A Spring Boot-based leave management application with user authentication, employee management, and leave request workflows.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages