The Currency Converter is a web application that allows users to convert amounts between different currencies in real time. It retrieves up-to-date exchange rates using an internal finacc-forex.jar library and performs currency conversion logic on the backend. The results are then displayed in the frontend UI.
- Java
- Spring Boot
- finacc-forex.jar β Internal library for fetching forex rates
- Maven β Project management and build tool
- HTML/CSS/Thymeleaf
-
Rate Retrieval:
The application uses the internal JAR filefinacc-forex.jarto fetch exchange rates between supported currencies. The exchange rates are cached in memory using Spring's caching mechanism (forexRatescache). This reduces unnecessary calls to the forex API and improves performance. A scheduled task evicts the cache every hour, ensuring rates stay reasonably up-to-date. -
Conversion Logic:
Once the user inputs an amount and selects source and target currencies, the backend calculates the converted value using the rates provided byfinacc-forex.jar. -
Frontend Display:
The converted amount is returned to the frontend and displayed to the user instantly.