How tungxeng2406/quanlynhansu works
HR Management is a Spring Boot web application for employee records, with its browser UI served by the backend. Users search, filter, sort and page through employee records, then view, create, edit, delete or export them; the API delegates business work to a service and persists through Spring Data JPA. A separate browser-side workflow imports item CSV files, validates and calculates VAT, displays results and exports them. The README documents capabilities beyond the sampled source; those are represented at subsystem level where paths are supported.
Main entry points: EmployeeController.java Employee API · index.html Employee page · app.js Employee workflows · EmployeeServiceImpl.java Employee operations
Components 14
Browser experience
- Employee page
src/main/resources/static/index.html - Employee workflows
src/main/resources/static/app.js - Items CSV
src/main/resources/static/items-csv.js
Employee API
- Spring Boot app
src/main/java/vn/tungxeng/hr/HrApplication.java - Employee API
src/main/java/vn/tungxeng/hr/controller/EmployeeController.java - API DTOs
src/main/java/vn/tungxeng/hr/dto - Error handling
src/main/java/vn/tungxeng/hr/exception/GlobalExceptionHandler.java
Business logic
- Employee service
src/main/java/vn/tungxeng/hr/service/EmployeeService.java - Employee operations
src/main/java/vn/tungxeng/hr/service/impl/EmployeeServiceImpl.java
Persistence
- Employee record
src/main/java/vn/tungxeng/hr/entity/Employee.java - Employee repository
src/main/java/vn/tungxeng/hr/repository/EmployeeRepository.java - H2 database
src/main/resources/application-local.yml
Other components
- HR user
- Downloaded CSV
Connections 15
- HR user → Employee page: uses
- Employee page → Employee workflows: loads
- Employee page → Items CSV: loads
- Employee workflows → Employee API: calls API
- Employee API → Employee workflows: returns data
- Employee API → Employee service: delegates
- Employee API → API DTOs: maps payloads
- Employee service → Employee operations: implemented by
- Employee operations → Employee repository: queries and saves
- Employee repository → H2 database: reads and writes
- Employee operations → Employee record: maps records
- Items CSV → Downloaded CSV: exports items
- Employee workflows → Downloaded CSV: downloads export
- Spring Boot app → Employee page: serves static UI
- Employee API → Error handling: handled errors