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

  • @hrithikpol8463
    @hrithikpol84636 ай бұрын

    Thank you ma'am for this amazing beginner friendly tutorial 👍

  • @harshkalita4108
    @harshkalita41084 ай бұрын

    This is an amazing video for refreshing spring boot JPA concepts!!

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    4 ай бұрын

    Thank you !

  • @alea621
    @alea6215 ай бұрын

    Thank you for your help, sister! I finished my first CRUD with Spring Boot with your assistance. :)

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    5 ай бұрын

    Great job! Keep Exploring more !

  • @Platica.Vasile
    @Platica.Vasile3 ай бұрын

    Thank you, well explained and straight to the point!

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    3 ай бұрын

    Thank you !

  • @bimalviswam
    @bimalviswam22 күн бұрын

    The best spring boot beginner course. very focused, easy to follow. Thank you so much .

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    21 күн бұрын

    Great to hear!

  • @likkilahari9642
    @likkilahari96425 ай бұрын

    Thank you. Understandable explanation

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    4 ай бұрын

    You are welcome!

  • @chinmaypawar8191
    @chinmaypawar81918 ай бұрын

    easy to understand

  • @-Corvo_Attano
    @-Corvo_Attano10 ай бұрын

    Your teaching is easily understandable mam❤ Thanks for sharing

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    10 ай бұрын

    Thank you !

  • @umasenthil1818
    @umasenthil18182 ай бұрын

    Wow. just amazing. what a talent you are? very thank you for sharing this video...thank you somuch

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    2 ай бұрын

    Thank you ! Keep watching

  • @nareshpatil2975
    @nareshpatil2975Ай бұрын

    This is the best of best tutorial I found, you explained beautifully. Thank you,

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    Ай бұрын

    Glad it was helpful!

  • @shailasheikh2893
    @shailasheikh289310 ай бұрын

    you are awsome your teaching is easy and way of explanation is too good..

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    10 ай бұрын

    Glad to hear that !

  • @Iamthor_07
    @Iamthor_076 ай бұрын

    Thank you Mam..... I Like Your Way of Teaching

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    6 ай бұрын

    It's my pleasure ! Keep Watching

  • @Monish-sn8kv
    @Monish-sn8kvАй бұрын

    Good Explanation

  • @mahesh4u
    @mahesh4u5 ай бұрын

    i am very happy ma'am you are great your understanding techniques is too good

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    5 ай бұрын

    Glad to hear that !

  • @Achandra7
    @Achandra710 ай бұрын

    Most underrated tutorial found in KZread

  • @rvsamy80

    @rvsamy80

    9 ай бұрын

    Clearly explained as per the need of novice programmers,this level is important

  • @meryemOuyouss2002
    @meryemOuyouss20023 ай бұрын

    Thank you soo much ,wonderful video ❤❤

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    3 ай бұрын

    Glad you liked it!

  • @sajithinesh8907
    @sajithinesh890710 ай бұрын

    Thanks for this content very usefull and easy to understand step by step

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    10 ай бұрын

    Glad you liked it !

  • @JAVA_TECH160

    @JAVA_TECH160

    8 ай бұрын

    ​@@SJProgrammingSolutionsspring boot MVC spring boot security spring data jpa and spring boot rest meda mini project emanna cheychu kada

  • @tusharkantaswain3987
    @tusharkantaswain39876 ай бұрын

    Nice mam i understood Rest apis clearly.

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    6 ай бұрын

    Thank you !

  • @user-qc2rg5rt2q
    @user-qc2rg5rt2q11 күн бұрын

    Thank you mam.Just completed the given task using your tutorial.

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    11 күн бұрын

    Great ! Happy to hear this.

  • @dhinakarnarasimha4712
    @dhinakarnarasimha47125 ай бұрын

    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

    @SJProgrammingSolutions

    5 ай бұрын

    Thank you !

  • @nityanand9194
    @nityanand91945 ай бұрын

    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

    @SJProgrammingSolutions

    5 ай бұрын

    Thanks you !

  • @vijaybalaji3945
    @vijaybalaji39452 ай бұрын

    Best ever video for Spring CRUD operations. Thanks mam!👍

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    2 ай бұрын

    Glad it was helpful !

  • @pkmkb-69

    @pkmkb-69

    2 ай бұрын

    Sir is this fully responsive??

  • @vijaybalaji3945

    @vijaybalaji3945

    2 ай бұрын

    @@pkmkb-69 Yes 👍

  • @262_tatedeshmukh_rutuja6
    @262_tatedeshmukh_rutuja65 ай бұрын

    Really useful👍Thank you mam🤗

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    5 ай бұрын

    Welcome , Keep Watching 😊

  • @karthikalapati2266
    @karthikalapati2266Ай бұрын

    You are fantastic. Your explanation style is excellent and your teaching style is simple.

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    Ай бұрын

    Many thanks!

  • @Jagadeesh_Josh
    @Jagadeesh_Josh3 ай бұрын

    Nice video mam, excellent explanation

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    3 ай бұрын

    Thanks a lot !

  • @tvenkatesh3996
    @tvenkatesh39963 ай бұрын

    Nice explanation mam....extremely useful mam..

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    3 ай бұрын

    Thank you !

  • @adanali3652
    @adanali36525 ай бұрын

    Thank you. Very well explanation. Which software and microphone do you use for recording?

  • @swajitjadhav9082
    @swajitjadhav90826 ай бұрын

    Nicely understandable..

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    6 ай бұрын

    Glad to hear that ! Thank you !

  • @nokeshnaidu1562
    @nokeshnaidu15627 ай бұрын

    Mam when we delete a record ,id number also deleted then after getting student list ,it is not in order .

  • @supriyapeneti2712
    @supriyapeneti2712Ай бұрын

    super mam ,easy understanding .

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    Ай бұрын

    Thank you !

  • @sabir7788
    @sabir7788Ай бұрын

    ❤❤

  • @androiddeveloperlpu301
    @androiddeveloperlpu3014 ай бұрын

    Excellent madam I have subscribe your channel.

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    4 ай бұрын

    Thank you !

  • @Day-real26
    @Day-real264 ай бұрын

    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

    @SJProgrammingSolutions

    4 ай бұрын

    Thank you !

  • @user-cz7nl8tw6w
    @user-cz7nl8tw6w9 ай бұрын

    amazing tutorial

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    9 ай бұрын

    Thank you !

  • @mahesh4u
    @mahesh4u5 ай бұрын

    i request to you please make the simple project video using spring boot

  • @mowli3885
    @mowli38854 ай бұрын

    super video for a fresher

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    4 ай бұрын

    Thank you !

  • @MouryaVeeramachaneni-lq8ev
    @MouryaVeeramachaneni-lq8ev8 ай бұрын

    Superb mam and also explain the entity mapping also

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    8 ай бұрын

    Sure I will do

  • @PoojaPatil-fb7xr
    @PoojaPatil-fb7xr5 ай бұрын

    Thank you ma'am ❤

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    5 ай бұрын

    Most welcome 😊 Keep Watching !

  • @deepikaradhakrishnan7107
    @deepikaradhakrishnan7107Ай бұрын

    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

    @SJProgrammingSolutions

    Ай бұрын

    Thank you !

  • @juanparra1996
    @juanparra19965 ай бұрын

    excellent video!

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    5 ай бұрын

    Thank you very much!

  • @sivajidragon3776
    @sivajidragon37762 ай бұрын

    Excellent performance

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    Ай бұрын

    Thank you !

  • @mowli3885
    @mowli38854 ай бұрын

    great work mam

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    4 ай бұрын

    It's my pleasure !

  • @brrarasaw
    @brrarasaw4 ай бұрын

    Best tutorial 👍🏻

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    4 ай бұрын

    Thank you !

  • @codetechknow
    @codetechknow3 ай бұрын

    i am getting empty student JSON [{},{}]values from the database

  • @gahininathsuryavanshi3786
    @gahininathsuryavanshi3786Ай бұрын

    i phasing j.LocalContainerEntityManagerFactoryBean this error mam

  • @rahulraj2620
    @rahulraj26205 ай бұрын

    Ur video is superb mam...plzz connect to frontend in this project

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    5 ай бұрын

    Sure I will

  • @chumamkhuseli9316
    @chumamkhuseli93164 ай бұрын

    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?

  • @timeisnow4890
    @timeisnow48903 ай бұрын

    Thank you ❤❤❤

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    3 ай бұрын

    Keep watching!

  • @manoharreddy-o4v
    @manoharreddy-o4v21 күн бұрын

    Very good.

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    19 күн бұрын

    Thanks you !

  • @shubhamsinghkhichi4095
    @shubhamsinghkhichi4095Ай бұрын

    Why didn't you create service layer

  • @amitkotwal9787
    @amitkotwal97872 ай бұрын

    nice oneeee....

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    2 ай бұрын

    Thank you !

  • @Deepalishinde725
    @Deepalishinde7253 ай бұрын

    Driver class in application property not mentioned thats why project not run

  • @kousarjamadar7339
    @kousarjamadar73394 ай бұрын

    I am getting WhitaLable error in browser and SErver port 8080 already in use from console give me solution

  • @SJProgrammingSolutions

    @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

  • @hiteshambre2785
    @hiteshambre278510 ай бұрын

    How to update row by entering data in response body itself rather than in controller method

  • @SJProgrammingSolutions

    @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; }

  • @deepakt1095
    @deepakt10955 ай бұрын

    Thank you for clear explanation 🎉

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    5 ай бұрын

    Thank you !

  • @RahulKumar-oy1lh
    @RahulKumar-oy1lh6 ай бұрын

    Which ide you are using in the video?

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    6 ай бұрын

    STS

  • @AshuKumar-kw8bi
    @AshuKumar-kw8bi3 ай бұрын

    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

    @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

    @AshuKumar-kw8bi

    3 ай бұрын

    @@SJProgrammingSolutions please clear it how can came local variable option

  • @miriyalavenkateswarlu4558
    @miriyalavenkateswarlu45584 ай бұрын

    How to retrive data using some string value instead of integer id?

  • @randhirkumar6262

    @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..

  • @cmknvreddy3044
    @cmknvreddy30442 ай бұрын

    hi mam spring boot and microservices concepts and project

  • @venomspider1344
    @venomspider1344Ай бұрын

    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

    @SJProgrammingSolutions

    27 күн бұрын

    Sure , will make video to explaine this

  • @ankitrajkuahwaha905
    @ankitrajkuahwaha905Ай бұрын

    mam why we haven't use service layer in this project

  • @SJProgrammingSolutions

    @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 !

  • @sahilk6928
    @sahilk69285 ай бұрын

    Hello why I got Exception during pool initialisation at 21:41 though my surname password of MySql is same

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    5 ай бұрын

    What is the exception ?

  • @sahilk6928

    @sahilk6928

    5 ай бұрын

    @@SJProgrammingSolutions Exception during pool initialisation

  • @sabeerrahman9965

    @sabeerrahman9965

    4 ай бұрын

    @@sahilk6928 in application properties spring.datasource.name to spring.datasource.username

  • @juvvalashiva3580
    @juvvalashiva358010 ай бұрын

    Mam if it is possible please make a vedio on restful API consumer application and provider application

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    10 ай бұрын

    Sure, Thank you !

  • @vijaymandloi9024
    @vijaymandloi90246 ай бұрын

    Mam why you did not use service layer here?

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    6 ай бұрын

    We can add service layer , Thank you !

  • @AshuKumar-kw8bi
    @AshuKumar-kw8bi3 ай бұрын

    how can go jparepository inside explain please

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    3 ай бұрын

    will create one video to ecplaine this flow internally

  • @svltejaswi
    @svltejaswi2 ай бұрын

    How to provide update details in the body?/

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    2 ай бұрын

    yusing @RequestBody Annotation you can pass the details in body

  • @sakshammishra2456
    @sakshammishra24565 ай бұрын

    Which mysql version you are using?

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    5 ай бұрын

    MySql 8.0

  • @MuthusaravanaMugilan
    @MuthusaravanaMugilan2 ай бұрын

    Mam, Why did you hard coded a value in put mapping....can we pass via Postman?

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    Ай бұрын

    yes we can pass in postman also

  • @suraj17_17

    @suraj17_17

    12 күн бұрын

    @@SJProgrammingSolutions how

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    12 күн бұрын

    @@suraj17_17 in the request body you can pass

  • @AshuKumar-kw8bi
    @AshuKumar-kw8bi3 ай бұрын

    My table is droped how can solve this problem

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    3 ай бұрын

    Make spring.jpa.hibernate.ddl-auto=update then table will not drop

  • @arifshakeel7436
    @arifshakeel7436Ай бұрын

    ma'am plz clear update mapping

  • @user-dn6qe7pr2t
    @user-dn6qe7pr2t6 күн бұрын

    How do I add exceptions ?

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    5 күн бұрын

    Please watch this video to understand exception handling kzread.info/dash/bejne/pJ95u8-vgMSpitY.html

  • @gahininathsuryavanshi3786
    @gahininathsuryavanshi3786Ай бұрын

    hlo mam can you send extracted folder of sts tool pls mam it help me lot's

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    Ай бұрын

    You directly download from internet

  • @phantomgaming5541
    @phantomgaming5541Ай бұрын

    mam hibernate error is coming give me soloution tommorow is my exam

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    Ай бұрын

    What is the error can you share on sjprogrammingsolutions@gmail.com

  • @abhishekrathour1695
    @abhishekrathour16955 ай бұрын

    how to add frontend

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    5 ай бұрын

    You can use React or Angular

  • @rkff6173
    @rkff61734 ай бұрын

    Where is service class and why some developers using service class for this same program

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    4 ай бұрын

    Service layer was not created for this project but you can create it

  • @prathamstill9422
    @prathamstill94223 ай бұрын

    Im getting error mam...🥲

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    3 ай бұрын

    What is the error ?

  • @rusithmaneesha1449
    @rusithmaneesha14493 ай бұрын

    fk

  • @bishnubhusal5999
    @bishnubhusal59993 ай бұрын

    Update operation is very bad and not applicable.

  • @chaitalipatil5592
    @chaitalipatil55922 ай бұрын

    I got error is cannot invoke org.hibernate. engine.jdbc.spi.sqlException

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    Ай бұрын

    Can you share the more details about the error on sjprogrammingsolutions@gmail.com

  • @gahininathsuryavanshi3786

    @gahininathsuryavanshi3786

    Ай бұрын

    solved y problm

  • @jayeshkhairnar2008

    @jayeshkhairnar2008

    Ай бұрын

    I gót same error

  • @jayeshkhairnar2008

    @jayeshkhairnar2008

    Ай бұрын

    @@gahininathsuryavanshi3786how is it solved?

  • @jayeshkhairnar2008

    @jayeshkhairnar2008

    Ай бұрын

    How is it solved?

Келесі