This is a simple employee management system built with Spring Boot, Spring Data MongoDB, and Thymeleaf.
- Create new employees
- Update existing employee information
- Remove individual employees
- Remove all employees
- Java
- Spring Boot
- Spring Data MongoDB
- Thymeleaf
- Maven
-
Prerequisites:
- Java Development Kit (JDK) 8 or later
- Apache Maven
- MongoDB
-
Clone the repository:
git clone https://github.com/Prajwal-banakar/Employee-Management-System
-
Configure the database: Open
src/main/resources/application.propertiesand configure your MongoDB connection details:spring.data.mongodb.uri=mongodb://localhost:27017/ems -
Build and run the application:
mvn spring-boot:run
-
Access the application: Open your web browser and go to
http://localhost:8080.
| Method | Endpoint | Description |
|---|---|---|
| GET | / |
Displays the home page. |
| GET | /create |
Displays the form to create a new employee. |
| POST | /create |
Creates a new employee. |
| GET | /update |
Displays the form to update an employee. |
| POST | /update |
Updates an employee's information. |
| GET | /remove |
Displays the form to remove an employee. |
| POST | /remove |
Removes an employee. |
| GET | /removeall |
Displays the form to remove all employees. |
| POST | /removeall |
Removes all employees. |