How allover555/leave-management-system works
This is a role-based university leave-management system: students register, submit applications with attachments, follow multi-stage approvals, and request cancellation/leave-close review; counselors approve and view class activity, while administrators configure users, classes, leave types, and approval flows. Vue pages call a Spring Boot API backed by JPA persistence, with JWT access control, messaging, statistics, and Excel export. The leave submission, approval advancement, and notification calls are visible in the sampled service; broader capability links rely on README documentation because many modules were not excerpted.
Main entry points: LeaveApplicationService.java Application and approval logic · repository JPA repositories · api API clients · index.js Role-aware routes
Components 21
Web client
- Role-aware routes
frontend/src/router/index.js - Leave and approval pages
frontend/src/views - Admin and statistics pages
frontend/src/views/admin - API clients
frontend/src/api
Identity and access
- Authentication endpoints
backend/src/main/java/com/leave/controller/AuthController.java - Registration and login
backend/src/main/java/com/leave/service/AuthService.java - JWT authorization
backend/src/main/java/com/leave/security
Leave workflow
- Leave endpoints
backend/src/main/java/com/leave/controller/LeaveController.java - Application and approval logic
backend/src/main/java/com/leave/service/LeaveApplicationService.java - Uploaded attachments
backend/src/main/java/com/leave/service/LeaveApplicationService.java - Cancellation review
backend/src/main/java/com/leave/service/LeaveApplicationService.java
Administration and insight
- Administration endpoints
backend/src/main/java/com/leave/controller/AdminController.java - User management
backend/src/main/java/com/leave/service/UserService.java - Statistics and export
backend/src/main/java/com/leave/service - File download endpoints
backend/src/main/java/com/leave/controller/FileController.java
Persistence and messaging
- Message notifications
backend/src/main/java/com/leave/service/MessageService.java - Leave and flow records
backend/src/main/java/com/leave/entity/LeaveApplication.java - User and role records
backend/src/main/java/com/leave/entity/SysUser.java - JPA repositories
backend/src/main/java/com/leave/repository - MySQL database
Other components
- Students and staff
Connections 25
- Students and staff → Role-aware routes: opens pages
frontend/src/router/index.js - Role-aware routes → Leave and approval pages: routes to
frontend/src/router/index.js - Role-aware routes → Admin and statistics pages: routes to
frontend/src/router/index.js - Students and staff → API clients: uses
README.md - API clients → Authentication endpoints: calls API
README.md - API clients → Leave endpoints: calls API
README.md - API clients → Administration endpoints: calls API
README.md - Authentication endpoints → Registration and login: delegates to
backend/src/main/java/com/leave/controller/AuthController.java - Registration and login → User and role records: loads and saves
backend/src/main/java/com/leave/service/AuthService.java - Registration and login → JWT authorization: generates token
backend/src/main/java/com/leave/service/AuthService.java - Students and staff → Leave endpoints: submits or reviews
README.md - Leave endpoints → Application and approval logic: delegates leave actions
backend/src/main/java/com/leave/controller/LeaveController.java - Application and approval logic → Leave and flow records: persists applications
backend/src/main/java/com/leave/service/LeaveApplicationService.java - Application and approval logic → Uploaded attachments: saves files
backend/src/main/java/com/leave/service/LeaveApplicationService.java - Application and approval logic → Cancellation review: handles close requests
backend/src/main/java/com/leave/controller/LeaveController.java - Application and approval logic → Message notifications: sends notifications
backend/src/main/java/com/leave/service/LeaveApplicationService.java - Administration endpoints → JPA repositories: reads and writes configuration
backend/src/main/java/com/leave/controller/AdminController.java - Administration endpoints → User management: manages users
README.md - Students and staff → Statistics and export: views reports
README.md - Statistics and export → JPA repositories: queries leave data
README.md - Statistics and export → Students and staff: exports Excel
README.md - File download endpoints → Uploaded attachments: serves uploads
README.md - JPA repositories → MySQL database: reads and writes
README.md - JPA repositories → Leave and flow records: maps records
backend/src/main/java/com/leave/repository/LeaveApplicationRepository.java - JPA repositories → User and role records: maps records
backend/src/main/java/com/leave/repository/SysUserRepository.java