- Introduction
- Features
- Technologies Used
- Screenshots
- Getting Started
- How to Use
- Project Structure
- Contributing
- License
- Acknowledgements
This is a simple Employee Management System built using Spring Boot. The goal of this project is to provide a basic system for managing employee data, with features such as adding new employees, viewing a list of all employees, and deleting employees from the system.
- Add Employee: Add new employees with details such as name and position.
- View Employees: View a list of all employees in the system.
- Delete Employee: Remove employees from the system.
- Spring Boot: Simplifies the development of production-ready Spring applications.
- Spring Data JPA: Provides easy data access using the Java Persistence API (JPA).
- Thymeleaf: A modern server-side Java template engine for web and standalone environments.
- H2 Database: An in-memory database for development and testing.
Make sure you have the following installed on your machine:
- Java JDK 8 or higher
- Maven
-
Clone the repository:
git clone https://github.com/your-username/employee-management-system.git
-
Navigate to the project directory:
cd employee-management-system
-
Build the project using Maven:
mvn clean install
-
Run the Spring Boot application:
java -jar target/employee-management-system-0.0.1-SNAPSHOT.jar
The application will be accessible at http://localhost:8080.
- Open your browser and go to http://localhost:8080.
- Use the provided form to add new employees.
- View the list of employees on the main page.
- Click the "Delete" button to remove an employee.
The project follows a standard Spring Boot structure:
src/main/java
: Contains the Java source code.com.example.employeemanagementsystem
: Main package.controller
: Contains controllers handling HTTP requests.model
: Defines the data model (e.g., Employee entity).repository
: Spring Data JPA repositories.service
: Business logic and services.Application.java
: Main application class.
src/main/resources
: Contains application properties and Thymeleaf templates.
Contributions are welcome! If you find any issues or have improvements to suggest, please open an issue or create a pull request.
This project is licensed under the MIT License.
- Thank you to the Spring Boot and Thymeleaf communities for providing excellent documentation and resources.
- Special thanks to contributors and users who help improve this project.