- Notifications
You must be signed in to change notification settings - Fork0
Building a Restful CRUD API using Spring Boot, Mysql, JPA and Hibernate
sangeetha0201/spring-boot-mysql-rest-api-tutorial
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Build Restful CRUD API for a simple Note-Taking application using Spring Boot, Mysql, JPA and Hibernate.
Java - 1.8.x
Maven - 3.x.x
Mysql - 5.x.x
1. Clone the application
git clone https://github.com/callicoder/spring-boot-mysql-rest-api-tutorial.git
2. Create Mysql database
create database notes_app
3. Change mysql username and password as per your installation
open
src/main/resources/application.properties
change
spring.datasource.username
andspring.datasource.password
as per your mysql installation
4. Build and run the app using maven
mvn packagejava -jar target/easy-notes-1.0.0.jar
Alternatively, you can run the app without packaging it using -
mvn spring-boot:run
The app will start running athttp://localhost:8080.
The app defines following CRUD APIs.
GET /api/notesPOST /api/notesGET /api/notes/{noteId}PUT /api/notes/{noteId}DELETE /api/notes/{noteId}
You can test them using postman or any other rest client.
You can find the tutorial for this application on my blog -
https://www.callicoder.com/spring-boot-rest-api-tutorial-with-mysql-jpa-hibernate/
About
Building a Restful CRUD API using Spring Boot, Mysql, JPA and Hibernate
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Languages
- Java100.0%