SpringBoot REST API CRUD Operations using Spring Data JPA | Postman | MySql
HTML-код
- Опубликовано: 30 июн 2024
- Hello All,
In this video we have created SpringBoot project and created some rest end points to perform CRUD operations.
Git URL for source code : github.com/sjprogramming/spri...
Rest end points :
Get All students : localhost:8080/students
Get student based on rollNo : localhost:8080/student/1
Create Student : localhost : localhost:8080/student/add
Update the student details : localhost:8080/student/update/2
Delete student based on id : localhost:8080/student/delete/1
This are the dependecies added in the pom.xml file :
Spring data JPA
Mysql connector
devtools
Spring web
How to develop REST CRUD API using Spring Boot?
What is the CRUD operation in spring REST?
What are the CRUD methods in REST API?
How to write simple REST API in Spring Boot?
How do I create a CRUD app in spring boot?
How to create API for CRUD operations?
00:00:00 How to create spring boot project in STS
00:07:41 How to create schema in MySQLWorkbench
00:08:40 Create student Entity
00:15:52 How to connect springboot application to MySQL database
00:23:14 Create Student Controller
00:25:28 How to create Student Repository
00:30:18 Get all students rest end point
00:34:20 Test Get request in postman
00:35:56 what is @PathVariable annotation
00:39:50 PostMapping to create new student
00:46:16 @ResponseStatus annotation
00:47:40 @PutMapping update student details
00:53:35 @DeleteMapping delete student based on id
#sjprogrammingsolutions #springboottutorial #springbootrestapi #studentmanagementsystem #postmanclient #crudoperations #springprojects #javaproject
Thank you ma'am for this amazing beginner friendly tutorial 👍
This is an amazing video for refreshing spring boot JPA concepts!!
Thank you !
Thank you for your help, sister! I finished my first CRUD with Spring Boot with your assistance. :)
Great job! Keep Exploring more !
easy to understand
This is the best of best tutorial I found, you explained beautifully. Thank you,
Glad it was helpful!
You are fantastic. Your explanation style is excellent and your teaching style is simple.
Many thanks!
Your teaching is easily understandable mam❤ Thanks for sharing
Thank you !
Thank you, well explained and straight to the point!
Thank you !
you are awsome your teaching is easy and way of explanation is too good..
Glad to hear that !
Wow. just amazing. what a talent you are? very thank you for sharing this video...thank you somuch
Thank you ! Keep watching
excellent video mam.i am a beginner and it is very useful mam..as mentioned in the comment if possible connect with front end and show us a demo video mam
Thank you !
Good Explanation
i am very happy ma'am you are great your understanding techniques is too good
Glad to hear that !
This video is so helpful and understandable , the institute sir made it complex ,so while searching other source got this video and made simple of learning . 💯
Thank you !
Thank you. Understandable explanation
You are welcome!
Thank you so much mam for this valuable tutorial.... I heartly appreciate your effort to make this one and convert it hardest to very simple😊I have cleared each and every point of rest api from this tutorial...really your teaching technique is awesome....thanks again❤😊
Thanks you !
Nice mam i understood Rest apis clearly.
Thank you !
Thank you Mam..... I Like Your Way of Teaching
It's my pleasure ! Keep Watching
Thanks for this content very usefull and easy to understand step by step
Glad you liked it !
@@SJProgrammingSolutionsspring boot MVC spring boot security spring data jpa and spring boot rest meda mini project emanna cheychu kada
Most underrated tutorial found in RUclips
Clearly explained as per the need of novice programmers,this level is important
Best ever video for Spring CRUD operations. Thanks mam!👍
Glad it was helpful !
Sir is this fully responsive??
@@pkmkb-69 Yes 👍
Really useful👍Thank you mam🤗
Welcome , Keep Watching 😊
Nice video mam, excellent explanation
Thanks a lot !
Nice explanation mam....extremely useful mam..
Thank you !
Nicely understandable..
Glad to hear that ! Thank you !
Thank you soo much ,wonderful video ❤❤
Glad you liked it!
amazing tutorial
Thank you !
super mam ,easy understanding .
Thank you !
Excellent performance
Thank you !
super video for a fresher
Thank you !
great work mam
It's my pleasure !
Thank you. Very well explanation. Which software and microphone do you use for recording?
Excellent madam
I have subscribe your channel.
Thank you !
❤❤
excellent video!
Thank you very much!
Best tutorial 👍🏻
Thank you !
Superb mam and also explain the entity mapping also
Sure I will do
banging the head for CRUD API's🥵, literally i faced many errors while API calling, but this video solves my all errors in just one shot😱. Thanks for the video☺
Thank you !
i request to you please make the simple project video using spring boot
Thank you ma'am ❤
Most welcome 😊 Keep Watching !
nice oneeee....
Thank you !
Ur video is superb mam...plzz connect to frontend in this project
Sure I will
Awesome video madam, thanks a lot really appreciate it, you've made lot of things simpler that I was struggling to understand. Just 1 question, how do I connect mySql with IntelliJ community?
Thank you ❤❤❤
Keep watching!
Mam when we delete a record ,id number also deleted then after getting student list ,it is not in order .
Thank you for clear explanation 🎉
Thank you !
Mam if it is possible please make a vedio on restful API consumer application and provider application
Sure, Thank you !
Why didn't you create service layer
hi mam spring boot and microservices concepts and project
Which ide you are using in the video?
STS
Which mysql version you are using?
MySql 8.0
Mam, Why did you hard coded a value in put mapping....can we pass via Postman?
yes we can pass in postman also
i am getting empty student JSON [{},{}]values from the database
video in 38mint 14 sec r u using on local variable but in my project not came in suggestion how can transfer in local variable please give me suggestion
Right click and there will be option " show context option " click on that then you will get assign local variable option
@@SJProgrammingSolutions please clear it how can came local variable option
i phasing j.LocalContainerEntityManagerFactoryBean this error mam
How to update row by entering data in response body itself rather than in controller method
You can use @RequestBody annotation and pass the Student object in request body itself with updated data. you can refer below code @PutMapping("/student/update")
public Student updateStudent(@RequestBody Student student) {
repo.save(student);
return student;
}
Mam why you did not use service layer here?
We can add service layer , Thank you !
How to retrive data using some string value instead of integer id?
Suppose you want to get data based in name then you have to create a method like findByName() in repository. Now by using this method you can get the data easily by passing name..
I am getting WhitaLable error in browser and SErver port 8080 already in use from console
give me solution
may be your application is running on 8080 port already , so stop the application and rerun or in application.properties add different server port this way , server.port=8089
Driver class in application property not mentioned thats why project not run
mam why we haven't use service layer in this project
just for the simplicity I had not added service layer but you can add a service layer as it's good programming practice. Thank you !
how can we make update data records in post man like provide data while add the students
and one more thing is update data can do any field like if one student name mistake we need to change or marks only need to change only give those information which we need to update can you teach how to achieve this
Sure , will make video to explaine this
Hello why I got Exception during pool initialisation at 21:41 though my surname password of MySql is same
What is the exception ?
@@SJProgrammingSolutions Exception during pool initialisation
@@sahilk6928 in application properties spring.datasource.name to spring.datasource.username
ma'am plz clear update mapping
how can go jparepository inside explain please
will create one video to ecplaine this flow internally
How to provide update details in the body?/
yusing @RequestBody Annotation you can pass the details in body
My table is droped how can solve this problem
Make spring.jpa.hibernate.ddl-auto=update then table will not drop
hlo mam can you send extracted folder of sts tool pls mam it help me lot's
You directly download from internet
how to add frontend
You can use React or Angular
mam hibernate error is coming give me soloution tommorow is my exam
What is the error can you share on sjprogrammingsolutions@gmail.com
Where is service class and why some developers using service class for this same program
Service layer was not created for this project but you can create it
Im getting error mam...🥲
What is the error ?
fk
Update operation is very bad and not applicable.
I got error is cannot invoke org.hibernate. engine.jdbc.spi.sqlException
Can you share the more details about the error on sjprogrammingsolutions@gmail.com
solved y problm
I gót same error
@@gahininathsuryavanshi3786how is it solved?
How is it solved?