Creating Java REST API with Spring Boot , Spring Data JPA and MySQL | REST API CRUD Operations

preview_player
Показать описание
Connecting Spring Boot Application with Database can be daunting for Java developers.
Hence, let us learn how to build and connect Java REST API with Spring Boot , Spring Data JPA and MySQL, extremely helpful for backend java developers. In this session, CRUD will be implemented and data will be stored in MySQL database. Data will also be updated, fetched and deleted from mysql.
Some key Spring Boot and Spring JPA annotations -
@SpringBootApplication , @RestController , @RequestBody , @RequestMapping , @GetMapping , @PostMapping , @PutMapping , @DeleteMapping , @Entity , @Table, @Id , @Service, @Override
Spring Boot REST API project with data persistence in the MySQL for Cloud Vendor Information Service with all 4 CRUD operations are developed in this session.
Spring data JPA and Spring Boot methods save() , findById(), findAll(), deleteById() are used.
CRUD operations will be implemented in this session with saving, fetching/ querying and deleting data from MySQL database.
Spring Boot is widely used for developing Microservices.

GitHub repository link for the Cloud Vendor Service Code is -

Session for Controller Layer operations - Create, Read, Update and Delete - All 4 REST API CRUD operations are implemented in below session. Kindly refer below link -

Java Spring Boot with MySQL using Spring Data JPA Tutorial with custom method is mentioned below -

Kindly subscribe to the channel for getting regular updates of the new sessions on Software / Computer Application topics by clicking below link -
Follow me on -

Some Good Books -
Disclosure, I use affiliate Amazon links above. Purchasing through these links gives me a small commission to support videos on this channel -- the price to you is the same.

Chapters
00:00:00 Welcome Note
00:01:07 Recap - Spring Boot, Spring Data JPA and MySQL
00:03:23 Cloud Vendor Scenario , REST API and Client Explanation
00:04:34 Spring Boot REST API Project Structure Explanation
00:08:42 Create Spring Boot Project using Spring Initializer with all Dependencies
00:18:07 MySQL Workbench Schema Verification
00:19:31 Maven Dependency refresh
00:19:53 Add @Entitiy , @Table and @Id Annotations to Model Class
00:22:32 Controller Layer Explanation
00:24:37 Create Repository with JpaRepository
00:27:22 Create Service Interface for CRUD and GetAll
00:31:52 Service Implementation @Service - CRUD and GetAll methods Implementation
00:41:21 Implement Controller CRUD and GetAll methods
00:49:33 Starting Spring Boot Application
00:50:22 Detailed testing Create , Read , Update , Delete ( CRUD ) and ReadAll using Postman and MySQL Workbench
01:00:09 Summary
01:02:57 Thank You Note

#springboot #restapi #java #thinkconstructive #eshapuri

Queries
how to build spring boot application
how to implement rest api using spring boot
how to implement java rest api using spring boot
how to implement crud operations using rest api and spring boot
how to implement crud operations using java rest api and spring boot
how to connect mysql with spring boot
how to connect mysql with spring boot and spring data jpa
how to store data in mysql using spring boot rest api
how to test rest api with postman
how to test crud rest api
how to use spring initializer
what is spring boot
what is rest api
what is postman
what is mysql workbench
how to fetch data from mysql and spring boot
what is spring boot rest api project architecture
how to arrange spring boot rest api code
what is controller layer
what is service layer
what is repository layer
how to write getall rest api with spring boot
how to write get rest api with spring boot
how to write delete rest api with spring boot
how to write create rest api with spring boot
how to write update rest api with spring boot
Рекомендации по теме
Комментарии
Автор

Java REST API with Spring Boot, Spring Data JPA and MySQL covers Create, Read, Update, Delete i.e. CRUD Operations will ReadAll / GetAll operations in detail. This tutorial covers detailed explanation along with thorough demonstration and then tested using Postman and MySQL Workbench. This will definitely be very helpful for those who are looking learn Java REST API with Spring Boot and MySQL database.
This is a high in demand skill; hence this session will definitely be beneficial for you.
Enjoy learning.
Cheers,
Esha

ThinkConstructive
Автор

Mother is the biggest guru in the world. Whenever I watch your tutorial, I feel like my mom is teaching me Java,
so mam, whatever playlist of Spring Boot Microservices you have,
you can completed all springboot with microservices the playlist. Please do it,
And I have learned a lot from your YouTube channel and want to learn further,
so please post the complete tutorial of Spring Boot Microservices,
complete this course, add all these videos like Jenkins, Kubernetility, dockers etc.
in the playlist, I will not go outside anywhere else.

amanchaudhary
Автор

Excellent video. Whole CRUD operation explained in such a clear and informative way. Very useful for someone to get complete flow of Java Rest API framework.

RahulSingh-sftp
Автор

I watched plenty of videos to learn this but I didn't find another famous channel this is helpful maybe because they thought I knew Spring Boot so they just explained the code but your video is completely beginner friendly thanks, mam.

tejaguramkondam
Автор

never found so much good tutorial on whole youtube ...your r the best of best teachers i have came across till now...

tpccibh
Автор

This is the best video I've seen on Spring Boot. Thank You Ma'am.

tommyshelbyobe
Автор

Thank you Madam for explaining very briefly and clearly. This video is the best for complete beginners and intermediate people.

Anirudh-cfoc
Автор

Thank you Madam for a breif explanation ..It is a complete practical video of Java rest ful api development using Spring boot framework, testing Postman and MySQL workbench .

magantiraju
Автор

Thank you so much ma'am, You explained everything very well (crisp and concise)

nitingoel
Автор

Note that if you're using Spring Boot 3 and above with this tutorial, the 'javax' namespace should be replaced by 'jakarta'.

hendrickx
Автор

This is great tutoroal to get the basic understanding of Springboot REST

sachindrapandey
Автор

Kudos to you for creating a such a informative tutorial.

I found that the delete API is also giving 200 OK response even for the vendorId not present in the database. Also even I request delete for same vendorId again, it also gives success message.

knowwhatyoudonot
Автор

Great video and clearly explained pin to pin for REST API. This video will help for beginners and also working professionals. Thanks

shivuss
Автор

Thank you so much Esha very good work explained everything very well without any confusion to the audience/viewers. You actually cleared lot of stuff in this one video like why a particular thing is required over there why we have to write nor why it is performed over there particularly "Just explained like a teacher explaining to their primary class students ".
Thanks a lot for your efforts for this video
There are lot of people out their who need a instructors like you 💌

gandamraviteja
Автор

This has been the most understandable lecture I have watched for spring boot

ordinaryhomosapien
Автор

Too late to found this. But gave more hope and strength. Thank you, its awesome.

kovvadavishnu
Автор

Thanks a lot for making this video. It gives us brief clearity about CRUD operations😊

bhoslegovind
Автор

I want to say big thanks. This tutorial saved me a lot of time and gave me a great example. Keep up the good work and the well-earned subscribe and like!

study_java__
Автор

So valuable content, thanks a lot ma'am

chandrashekhar-bonf
Автор

Very good lecture. For me, when using Spring Boot version 3 some imports (such as javax.persistence.Entity) need to be changed to jakarta.persistence.Entity

heinrichody