Spring Boot RESTful CRUD API Tutorial with MySQL database

preview_player
Показать описание
00In this Spring Boot tutorial, you will learn how to develop RESTful web services APIs for CRUD operations on a MySQL database. The CRUD operations include Create, Retrieve, Update and Delete.

By completing this tutorial, you will be able to build a Spring Boot-based web application that exposes RESTful CRUD APIs to clients. The following technologies will be used:

- Spring Boot: greatly simplifies Java enterprise application and RESTful APIs development by providing default configuration and best practices.

- Spring Data JPA: simplifies programming for the data access layer by implementing most common persistence operations following best practices.

- Hibernate: is the default Object/Relational Mapping framework integrated with Spring Data JPA.

To follow this tutorial, you must have the following software programs installed on your computer:
- Java Development Kit (JDK 1.8 or newer)
- MySQL Database server (including MySQL Workbench and MySQL Command Line Client to manage database)
- A Java IDE (Eclipse IDE, NetBeans or IntelliJ IDEA)
- curl (to test RESTful APIs)

#springboot #springmvc #restapis #webservices #springframework #javaprogramming #springtutorial

Timestamps
00:00:38 Overview
00:02:34 Steps
00:03:47 Class Diagram
00:06:06 Create MySQL Database
00:08:14 Create Maven Project
00:14:35 Configure Data Source Properties
00:16:45 Code Domain Model Class
00:20:44 Code Repository Interface
00:22:37 Code Service Class
00:27:50 Code REST Controller Class
00:30:00 Implement List API
00:35:18 Implement Get API
00:43:07 Implement Create API
00:48:08 Implement Update API
00:56:00 Implement Delete API
Рекомендации по теме
Комментарии
Автор

Thanks! Adding for self reference.

9:19 - dependencies,
13:07 - pom.xml
17:58 - Product.java code
24:49 - instance of product repository in the product service.
So the service interacts with the repo.
32:09 - returns empty.
35:29 - perform all these
37:23 - @GetMapping, feching form apis, locally (postman)
48:21 - http methods

smblog
Автор

You video tutorial is very good. You've the talent to teach. This is the most straightforward beginner-level Spring Boot REST CRUD walkthrough I've ever watched. A Spring beginner can learn the basics from you without being confused by unnecessary details. Still there a couple of things I think you can improve: First, I think it is a better practice to create several packages so that the project structure looks more organized; second, with regard to the PUT method, you can write one {id} in the URI and a different "id" in JSON but it still works, as long as the URI {id} exists in mydb. I think a beginner should be aware of these two points.

KCTsangKen
Автор

I've acquired few tricks to add to my spring boot knowledge ! thank you

NoCodeDev
Автор

Dude that is absolute amazing 🤩 and awesome 😎. So you can programming a fully json server service app and in the other hand a mobile app for the view! Incredible really! Thanks I have a lot of ideas 💡 now. You are the ounce of the best framework teacher ever! Great eastern Dude! God bless you. 🖖🏻🖖🏻🖖🏻🖖🏻

brazo
Автор

Thank you my brother for uploading this. i need to implement web service using spring and hibernate for an upcoming project at work.. and the RequestEntity portion was really confusing me. This video really cleared it up. Thanks a ton brother.

I have subscribed and I hope your channel grows from strength to strength.

programmingwithnish
Автор

Thank You, this tutorial helped me a lot! I did not skip the ads to support you! :)

aniini
Автор

It helped me alot. Please provide such lesson with springboot security. It would be really helpful alot.

roshanaale
Автор

Wonderful work. Thanks a lot. All material made with quality.

angular-developer-et
Автор

Thank you Its very helpful and worked nicely on my demo crud project

RavinathFernando
Автор

thanks a lot. It's very helpful for me! Have a nice day

hoangnguyen
Автор

Amazing... much better content than the channels with more than 500k subscribers...

ankitkaushal
Автор

It was really so so useful! Such a clear teaching.Hats off to you!!

abinayachandrasekeran
Автор

well planned tutorial for beginners. Thanks

jejakagentleman
Автор

great video, exactly what I was looking for!

mystoc
Автор

I use java 11 and maven 2.4.2 and it works!!

davidrosales
Автор

God Job man!, Greetings from Colombia.

juanguillermohernandezalar
Автор

What a great tutorial. Easy to understand and follow along. Keep up the good work. I subscribed to your channel in case you upload more content. Thank you for uploading this video.

jonathanpalominovega
Автор

Pls help me...am getting curl: no url specified in video at 46:52

vinaykumard
Автор

Yu are going great job bro during this hard time

potararaj
Автор

Hi, Thanks a lot for the videos you make, they are really helpful..! I got an error while working on this which says creating bean with name ..Contoller, Could you please help me with it

jagadambika
welcome to shbcf.ru