How shubhamdeasi719/hr-management-portal works
Project type and purpose
• This is a full-stack web application (“HR Management Portal”) built on Spring Boot with a Thymeleaf front end. It provides secured CRUD operations on employee records, OTP-based password reset, role-based access, file uploads, and runtime monitoring.
File structure
• Top level: Maven configuration (pom.xml, mvnw), README.
• src/main/java/com/hr:
• HrManagementPortalApplication.java (entry point)
• controller/ – Spring MVC controllers (REST or HTML endpoints)
• service/ – Business logic interfaces & implementations
• repository/ – Spring Data JPA interfaces for MySQL
• entity/ – JPA entity classes (Employee, Compose, CreatePost)
• security/ – Spring Security configuration
• aop/ – Aspects for logging/performance (Spring AOP)
• exception/ – Custom exceptions + global handler
• ServletInitializer (for servlet container)
• src/main/resources:
• application.properties (DB, mail settings)
• static/(css, js, images, file-uploads)
• templates/ – Thymeleaf HTML views
• src/test: JUnit + Mockito tests for controllers and services
README
• Confirms: Spring MVC + Thymeleaf front end, Spring Security (RBAC + OTP), Spring Data JPA + MySQL, Spring Actuator + AOP monitoring, file-upload for profile pics, JUnit tests.
Detail
• Component, including AOP advice, Actuator.
• Exception flow to GlobalExceptionHandler.
• Profile-picture upload path (client → Controller → filesystem or DB).
• Detail security roles flow (User → LoginController → SecurityConfig → Role checks).
• Don’t over-aggregate: show key classes or packages as grouped components.