SpringBoot REST API CRUD Operations using Spring Data JPA | Postman | MySql
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
Пікірлер: 159
Thank you ma'am for this amazing beginner friendly tutorial 👍
This is an amazing video for refreshing spring boot JPA concepts!!
@SJProgrammingSolutions
4 ай бұрын
Thank you !
Thank you for your help, sister! I finished my first CRUD with Spring Boot with your assistance. :)
@SJProgrammingSolutions
5 ай бұрын
Great job! Keep Exploring more !
Thank you, well explained and straight to the point!
@SJProgrammingSolutions
3 ай бұрын
Thank you !
The best spring boot beginner course. very focused, easy to follow. Thank you so much .
@SJProgrammingSolutions
21 күн бұрын
Great to hear!
Thank you. Understandable explanation
@SJProgrammingSolutions
4 ай бұрын
You are welcome!
easy to understand
Your teaching is easily understandable mam❤ Thanks for sharing
@SJProgrammingSolutions
10 ай бұрын
Thank you !
Wow. just amazing. what a talent you are? very thank you for sharing this video...thank you somuch
@SJProgrammingSolutions
2 ай бұрын
Thank you ! Keep watching
This is the best of best tutorial I found, you explained beautifully. Thank you,
@SJProgrammingSolutions
Ай бұрын
Glad it was helpful!
you are awsome your teaching is easy and way of explanation is too good..
@SJProgrammingSolutions
10 ай бұрын
Glad to hear that !
Thank you Mam..... I Like Your Way of Teaching
@SJProgrammingSolutions
6 ай бұрын
It's my pleasure ! Keep Watching
Good Explanation
i am very happy ma'am you are great your understanding techniques is too good
@SJProgrammingSolutions
5 ай бұрын
Glad to hear that !
Most underrated tutorial found in KZread
@rvsamy80
9 ай бұрын
Clearly explained as per the need of novice programmers,this level is important
Thank you soo much ,wonderful video ❤❤
@SJProgrammingSolutions
3 ай бұрын
Glad you liked it!
Thanks for this content very usefull and easy to understand step by step
@SJProgrammingSolutions
10 ай бұрын
Glad you liked it !
@JAVA_TECH160
8 ай бұрын
@@SJProgrammingSolutionsspring boot MVC spring boot security spring data jpa and spring boot rest meda mini project emanna cheychu kada
Nice mam i understood Rest apis clearly.
@SJProgrammingSolutions
6 ай бұрын
Thank you !
Thank you mam.Just completed the given task using your tutorial.
@SJProgrammingSolutions
11 күн бұрын
Great ! Happy to hear this.
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 . 💯
@SJProgrammingSolutions
5 ай бұрын
Thank you !
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❤😊
@SJProgrammingSolutions
5 ай бұрын
Thanks you !
Best ever video for Spring CRUD operations. Thanks mam!👍
@SJProgrammingSolutions
2 ай бұрын
Glad it was helpful !
@pkmkb-69
2 ай бұрын
Sir is this fully responsive??
@vijaybalaji3945
2 ай бұрын
@@pkmkb-69 Yes 👍
Really useful👍Thank you mam🤗
@SJProgrammingSolutions
5 ай бұрын
Welcome , Keep Watching 😊
You are fantastic. Your explanation style is excellent and your teaching style is simple.
@SJProgrammingSolutions
Ай бұрын
Many thanks!
Nice video mam, excellent explanation
@SJProgrammingSolutions
3 ай бұрын
Thanks a lot !
Nice explanation mam....extremely useful mam..
@SJProgrammingSolutions
3 ай бұрын
Thank you !
Thank you. Very well explanation. Which software and microphone do you use for recording?
Nicely understandable..
@SJProgrammingSolutions
6 ай бұрын
Glad to hear that ! Thank you !
Mam when we delete a record ,id number also deleted then after getting student list ,it is not in order .
super mam ,easy understanding .
@SJProgrammingSolutions
Ай бұрын
Thank you !
❤❤
Excellent madam I have subscribe your channel.
@SJProgrammingSolutions
4 ай бұрын
Thank you !
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☺
@SJProgrammingSolutions
4 ай бұрын
Thank you !
amazing tutorial
@SJProgrammingSolutions
9 ай бұрын
Thank you !
i request to you please make the simple project video using spring boot
super video for a fresher
@SJProgrammingSolutions
4 ай бұрын
Thank you !
Superb mam and also explain the entity mapping also
@SJProgrammingSolutions
8 ай бұрын
Sure I will do
Thank you ma'am ❤
@SJProgrammingSolutions
5 ай бұрын
Most welcome 😊 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
@SJProgrammingSolutions
Ай бұрын
Thank you !
excellent video!
@SJProgrammingSolutions
5 ай бұрын
Thank you very much!
Excellent performance
@SJProgrammingSolutions
Ай бұрын
Thank you !
great work mam
@SJProgrammingSolutions
4 ай бұрын
It's my pleasure !
Best tutorial 👍🏻
@SJProgrammingSolutions
4 ай бұрын
Thank you !
i am getting empty student JSON [{},{}]values from the database
i phasing j.LocalContainerEntityManagerFactoryBean this error mam
Ur video is superb mam...plzz connect to frontend in this project
@SJProgrammingSolutions
5 ай бұрын
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 ❤❤❤
@SJProgrammingSolutions
3 ай бұрын
Keep watching!
Very good.
@SJProgrammingSolutions
19 күн бұрын
Thanks you !
Why didn't you create service layer
nice oneeee....
@SJProgrammingSolutions
2 ай бұрын
Thank you !
Driver class in application property not mentioned thats why project not run
I am getting WhitaLable error in browser and SErver port 8080 already in use from console give me solution
@SJProgrammingSolutions
4 ай бұрын
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
How to update row by entering data in response body itself rather than in controller method
@SJProgrammingSolutions
10 ай бұрын
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; }
Thank you for clear explanation 🎉
@SJProgrammingSolutions
5 ай бұрын
Thank you !
Which ide you are using in the video?
@SJProgrammingSolutions
6 ай бұрын
STS
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
@SJProgrammingSolutions
3 ай бұрын
Right click and there will be option " show context option " click on that then you will get assign local variable option
@AshuKumar-kw8bi
3 ай бұрын
@@SJProgrammingSolutions please clear it how can came local variable option
How to retrive data using some string value instead of integer id?
@randhirkumar6262
Ай бұрын
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..
hi mam spring boot and microservices concepts and project
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
@SJProgrammingSolutions
27 күн бұрын
Sure , will make video to explaine this
mam why we haven't use service layer in this project
@SJProgrammingSolutions
Ай бұрын
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 !
Hello why I got Exception during pool initialisation at 21:41 though my surname password of MySql is same
@SJProgrammingSolutions
5 ай бұрын
What is the exception ?
@sahilk6928
5 ай бұрын
@@SJProgrammingSolutions Exception during pool initialisation
@sabeerrahman9965
4 ай бұрын
@@sahilk6928 in application properties spring.datasource.name to spring.datasource.username
Mam if it is possible please make a vedio on restful API consumer application and provider application
@SJProgrammingSolutions
10 ай бұрын
Sure, Thank you !
Mam why you did not use service layer here?
@SJProgrammingSolutions
6 ай бұрын
We can add service layer , Thank you !
how can go jparepository inside explain please
@SJProgrammingSolutions
3 ай бұрын
will create one video to ecplaine this flow internally
How to provide update details in the body?/
@SJProgrammingSolutions
2 ай бұрын
yusing @RequestBody Annotation you can pass the details in body
Which mysql version you are using?
@SJProgrammingSolutions
5 ай бұрын
MySql 8.0
Mam, Why did you hard coded a value in put mapping....can we pass via Postman?
@SJProgrammingSolutions
Ай бұрын
yes we can pass in postman also
@suraj17_17
12 күн бұрын
@@SJProgrammingSolutions how
@SJProgrammingSolutions
12 күн бұрын
@@suraj17_17 in the request body you can pass
My table is droped how can solve this problem
@SJProgrammingSolutions
3 ай бұрын
Make spring.jpa.hibernate.ddl-auto=update then table will not drop
ma'am plz clear update mapping
How do I add exceptions ?
@SJProgrammingSolutions
5 күн бұрын
Please watch this video to understand exception handling kzread.info/dash/bejne/pJ95u8-vgMSpitY.html
hlo mam can you send extracted folder of sts tool pls mam it help me lot's
@SJProgrammingSolutions
Ай бұрын
You directly download from internet
mam hibernate error is coming give me soloution tommorow is my exam
@SJProgrammingSolutions
Ай бұрын
What is the error can you share on sjprogrammingsolutions@gmail.com
how to add frontend
@SJProgrammingSolutions
5 ай бұрын
You can use React or Angular
Where is service class and why some developers using service class for this same program
@SJProgrammingSolutions
4 ай бұрын
Service layer was not created for this project but you can create it
Im getting error mam...🥲
@SJProgrammingSolutions
3 ай бұрын
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
@SJProgrammingSolutions
Ай бұрын
Can you share the more details about the error on sjprogrammingsolutions@gmail.com
@gahininathsuryavanshi3786
Ай бұрын
solved y problm
@jayeshkhairnar2008
Ай бұрын
I gót same error
@jayeshkhairnar2008
Ай бұрын
@@gahininathsuryavanshi3786how is it solved?
@jayeshkhairnar2008
Ай бұрын
How is it solved?