How hongyuyang296/leasepluse-springboot works
LeasePluse is a small Spring Boot API for calculating employee salary-packaging limits. A client posts employee details to the calculation endpoint; Spring binds them to an Employee, the controller calls the salary rules service, and the numeric result is returned to the client. WebConfig documents cross-origin access for the frontend. The sampled application excludes datasource auto-configuration, and the repository tree shows no persistence implementation. Edges reflect the documented endpoint and sampled controller/service calls.
Main entry points: SalaryCalculatorController.java Calculation Endpoint · SalaryPackageService.java Salary Rules · BackendApplication.java Backend Application · WebConfig.java CORS Configuration
Components 6
Application Runtime
- Backend Application
src/main/java/com/leasepluse/backend/BackendApplication.java - CORS Configuration
src/main/java/com/leasepluse/backend/config/WebConfig.java
HTTP API
- Calculation Endpoint
src/main/java/com/leasepluse/backend/controller/SalaryCalculatorController.java
Calculation Domain
- Employee Input
src/main/java/com/leasepluse/backend/model/Employee.java - Salary Rules
src/main/java/com/leasepluse/backend/service/SalaryPackageService.java
Other components
- API Client
Connections 10
- API Client → Calculation Endpoint: posts details
- Calculation Endpoint → Employee Input: binds request
- Calculation Endpoint → Salary Rules: calculates limit
- Salary Rules → Employee Input: reads fields
- Salary Rules → Calculation Endpoint: returns limit
- Calculation Endpoint → API Client: returns result
- Backend Application → Calculation Endpoint: starts context
- Backend Application → Salary Rules: starts context
- Backend Application → CORS Configuration: starts context
- CORS Configuration → Calculation Endpoint: sets CORS policy