Spring Boot Rest CRUD API application shows the basic CRUD functionalities using Hibernate, JPA, and Spring Data JPA to interact with MySQL database.
-
Set up MySQL database on your machine. You can follow this digitalOcean guide
-
JDK 11 installation. Digital Ocean guide
- Clone the repo
- Open the repo in eclipse ocean Java EE IDE
- Update the username and password of your database in file:
/cruddemo/src/main/resources/application.properties
- Paste and run the
employee.sql
file in MySQL workbench to setup the employee table - Run the CruddemoApplication.java file as a Java Application
- Application will run on http://localhost:8080
- You can download Postman to access various routes