This is a simple calculator web application built using Spring Boot and Spring Tool Suite 4 (STS4). The application allows users to perform basic arithmetic operations (➕ Addition, ➖ Subtraction, ✖️ Multiplication, and ➗ Division) through a user-friendly web interface.
- ✅ Perform basic arithmetic operations: Addition, Subtraction, Multiplication, and Division.
- 🎨 User-friendly HTML/CSS front-end with a responsive design.
- ⚙️ Backend implementation using Spring Boot MVC architecture.
- 💡 Lightweight and easy to run on localhost.
- Backend: Spring Boot, Spring MVC
- Frontend: HTML, CSS
- Development Tools: Spring Tool Suite 4 (STS4)
├── src/main/java/com/example/demo
│ ├── CalculatorApplication.java # Main Spring Boot Application
│ ├── CalciCalculator.java # Controller handling requests
│ ├── CalciService.java # Service for arithmetic operations
│
├── src/main/resources/templates
│ ├── calci.html # Calculator UI
│ ├── resultpage.html # Result display page
│
├── pom.xml # Maven dependencies
└── README.md # Project Documentation
Make sure you have the following installed:
- ☕ Java JDK 8 or later
- 🛠 Spring Tool Suite 4 (STS4) or any IDE that supports Spring Boot
- 🏗️ Maven
- Clone the Repository:
git clone https://github.com/YOUR_GITHUB_USERNAME/SimpleCalculator.git cd SimpleCalculator - Open the project in STS4 or any IDE.
- Run the Application:
mvn spring-boot:run
- Access the Application:
- Open a browser and navigate to:
🌍 http://localhost:8080/
- Open a browser and navigate to:
- 🔢 Enter two numbers in the input fields.
- ✏️ Click on an operation (ADD, SUB, MUL, DIV).
- 📊 The result will be displayed on the result page.
![]() ADD |
![]() DIV |
![]() Division by zero is not allowed |
This project is licensed under the MIT License.
[Rohit Swami] - Developer of Simple Calculator


