Inserting data to database using Spring JDBC | Best Practice | Spring Jdbc Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 มิ.ย. 2020
  • In this video we are going to learn how to insert data to database using Spring JDBC
    We will follow two approaches of doing do.
    Inserting data to database using Spring JDBC | Best Practice | Spring Jdbc Tutorial
    Download Source Code : learncodewithdurgesh.com/cour...
    Full Spring Framework Series: • Spring Framework Tutor...
    Telegram Link for Doubt: t.me/learncodewithdurgesh
    Important Videos:
    ➡️React JS with Project : • 🔥 🔥 Complete React Js ...
    ➡️Learn JDBC in one video: • JDBC Crash Course in 1...
    ➡️Learn Python in One Video: • Learn Python in One Vi...
    ➡️Learn HTML in one video: • Jquery in one video in...
    ➡️Learn HTML form in one video: • Jquery in one video in...
    ➡️Learn JavaScript in one videos: • Learn JavaScript in O...
    ➡️Learn Form Validation using javascript and jquery: • Form Validation using ...
    ➡️Learn CSS in one video: • Jquery in one video in...
    ➡️Jquery in one video: • Jquery in one video in...
    ➡️Kotlin is one video: • Kotlin | Learn Kotlin ...
    ➡️Complete Python Project - TH-cam downloader in one video: • Jquery in one video in...
    Important Playlist:
    ➡️Spring Boot Tutorial with Project : • Spring Boot Tutorial i...
    ➡️Spring MVC Tutorial: • Spring MVC Tutorial St...
    ➡️Complete Spring Framework Tutorial: • Spring Framework Tutor...
    ➡️Hibernate Tutorials: • Hibernate Tutorial for...
    ➡️E-Commerce Project using Java: • E-Commerce Project usi...
    ➡️AWS Free Java Hosting Playlist: • AWS Hosting Tutorial |...
    ➡️Hibernate Tutorial Playlist: • Hibernate Tutorial for...
    ➡️Learn Technology in One Vides: • Learn in one video : C...
    ➡️Programming Tips for Programmers: • Coding Tips and Discus...
    ➡️Complete Python for Beginners: • Complete Python Tutori...
    ➡️Important Python Projects: • Python Projects in Hindi
    ➡️Complete Servlet & JSP : • Servlet and Jsp (Serve...
    ➡️Complete JDBC ( Java Database Connectivity) : • JDBC(Java Database Con...
    ➡️Complete Java Project : TechBlog: • Full Java Advance Pro...
    ➡️Java Swing Projects: • Java Projects for begi...
    ➡️Java Core Concepts: • Java Core Tutorial
    ➡️Kya aap Jante hai Series: • kya app jante hai : s...
    Important Links:
    👉Official Website (Source Code): learncodewithdurgesh.com/
    👉Telegram Discussion Group: t.me/learncodewithdurgesh
    👉Follow me on Instagram: / durgesh_k_t
    👉Follow on Facebook / learncodewithdurgesh
    Gear that I use:
    Gears that I Use:
    Lenovo Ideapad S145 AMD Ryzen 5 15.6
    amzn.to/33Vvxu2
    Mic for Recording
    amzn.to/305hgtr
    amzn.to/2EyFMfa
    Topic Covered:
    spring jdbc module in hindi
    spring module in hindi
    spring jdbc
    what is spring jdbc
    spring jdbc tutorial in hindi
    why to use spring jdbc in hindi
    why to use spring jdbc
    how to use spring jdbc
    spring jdbc in hindi
    learn spring spring jdbc
    lear spring jdbc in hindi
    jdbctemplate class spring jdbc
    datasource spring module
    inserting data using jdbcTemplate
    inserting data using jdbcTemplate in hindi
    Disclaimer:
    All videos are for educational purposes and use them wisely. Any video may have a slight mistake, please take decisions based on your research. This video is not forcing anything on you.

ความคิดเห็น • 200

  • @vantal4115
    @vantal4115 ปีที่แล้ว +5

    Following this playlist from the beginning ..also watched all previous playlists of servlet jsp and hibernate orm ...thanks sir for this amazing content it is very helpful

  • @zeeshanahmad-tx5hw
    @zeeshanahmad-tx5hw 2 ปีที่แล้ว +10

    Hello Sir.. Ye design pattern confuse kr raha hai... Plz use diagram before impliment.

  • @parthsalat3915
    @parthsalat3915 2 ปีที่แล้ว +5

    Thanks for teaching us the best industry practices!

  • @mcachoudhary
    @mcachoudhary ปีที่แล้ว

    Very easy to understand and very helpful video. Thanks Durgesh.

  • @rohan8758
    @rohan8758 ปีที่แล้ว +2

    Superb sir, Loved it. Appreciate your hard work for us.

  • @vaibhavmishra6068
    @vaibhavmishra6068 ปีที่แล้ว +1

    Great video sir....fully industry based... thanks alot....

  • @avadhutpatil6625
    @avadhutpatil6625 2 ปีที่แล้ว +1

    Thanks for sharing knowledge with us Sir 😍

  • @shubhamgole3741
    @shubhamgole3741 ปีที่แล้ว

    Very easy to understand and helpful video. Thanks Durgesh Sirr🤩

  • @srujanwankhede5314
    @srujanwankhede5314 3 ปีที่แล้ว

    thankyou very much sir ... ab jaake samjha

  • @mdsarfarazansari3844
    @mdsarfarazansari3844 2 ปีที่แล้ว +8

    If anyone is facing database connection issue then change sql connector version "8.0.28" in pom.xml and change the driver path

    • @manojpatil7351
      @manojpatil7351 2 ปีที่แล้ว

      Thanks !! It worked 🎈

    • @pathankhadeer9921
      @pathankhadeer9921 2 ปีที่แล้ว

      bhai driver path kise change karni hai batadona pls

    • @manojpatil7351
      @manojpatil7351 2 ปีที่แล้ว

      @@pathankhadeer9921 jaha tune woh mysql ka uername password likha hai waha driver path hai waha new drivername dalde ... waise woh nahi kiya toh bhi chaljayega

    • @cruzle310
      @cruzle310 ปีที่แล้ว

      Thankyou so much it helped a lot

    • @sahil.sartaj
      @sahil.sartaj ปีที่แล้ว

      thank you @mdsarfarazansari3844

  • @kevin3447
    @kevin3447 2 ปีที่แล้ว +1

    Thank you Sir!!😄

  • @swaraj9913
    @swaraj9913 2 ปีที่แล้ว

    Thanks for the video

  • @anujjain1456
    @anujjain1456 4 ปีที่แล้ว +19

    thodi complex video h

  • @dhirajkumarlll
    @dhirajkumarlll 2 ปีที่แล้ว

    good Explanation Durgesh Brother

  • @dheerajbhagchandani5775
    @dheerajbhagchandani5775 2 ปีที่แล้ว

    Great Thanks sir...

  • @mukeshkumar-sc7bk
    @mukeshkumar-sc7bk 4 ปีที่แล้ว

    Thank you sir

  • @sachinKumar-hu9gj
    @sachinKumar-hu9gj 4 ปีที่แล้ว +1

    Thank you sir 😁😁😁

  • @kirantilekar510
    @kirantilekar510 ปีที่แล้ว

    thanks for to the content videoes.

  • @mohdshahban6261
    @mohdshahban6261 2 ปีที่แล้ว

    thanks durgesh bhai

  • @nileshraghuvanshi3530
    @nileshraghuvanshi3530 2 ปีที่แล้ว

    Thanks .

  • @natural_world_creation6982
    @natural_world_creation6982 ปีที่แล้ว

    informative.

  • @Vinaykumar-bx1ql
    @Vinaykumar-bx1ql ปีที่แล้ว

    Thank you so muchh sir ji.............

  • @spider8015
    @spider8015 2 หลายเดือนก่อน

    thanks sir

  • @Satya-vx6wk
    @Satya-vx6wk ปีที่แล้ว

    thanks

  • @amitkumarchoubey2003
    @amitkumarchoubey2003 3 หลายเดือนก่อน +1

    श्री राधे राधे राधे बरसाने वाली राधे 🕉️🌹🇮🇳🕉️🙏🚩🛕🌞⛳💯🎯🙏
    Best Bhaiya 🙏 👸 🕉️🙏🚩🌹🙏🕉️🕉️माँ

  • @parthsalat3915
    @parthsalat3915 2 ปีที่แล้ว +1

    Nice wallpaper!

  • @thirumaleshtelugu1143
    @thirumaleshtelugu1143 3 ปีที่แล้ว

    Please reply sir, so that I can continue the course.

  • @user-sz8bi1fc3r
    @user-sz8bi1fc3r 6 หลายเดือนก่อน

    damn bro, u nailed it

  • @harshitsachdeva4836
    @harshitsachdeva4836 4 ปีที่แล้ว +1

    Perfect hai😁😁😂

  • @AmanThakurchannel
    @AmanThakurchannel ปีที่แล้ว

    Hey I had used @Autowired but it is not working for JdbcTemplate varialble...... showing error null value
    for JdbcTemplate variable..... But same process worked fine in my another test classes.

  • @shankar_thakur37
    @shankar_thakur37 3 ปีที่แล้ว +1

    it helped me. Thank you bro

  • @BGMICLASHES
    @BGMICLASHES 9 หลายเดือนก่อน

    We can even pass the object directly through constructor object of jdbctemp

  • @monicachhabria3406
    @monicachhabria3406 4 ปีที่แล้ว

    Sir ye kaunsa design pattern use kiya hai?

  • @nehasharma8223
    @nehasharma8223 8 หลายเดือนก่อน +1

    if there is showing error of "DataAccessException cannot be resolved. It is indirectly referenced from required .class files" then add spring-tx dependency

  • @vranjit5113
    @vranjit5113 ปีที่แล้ว +1

    i am getting message
    Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.

  • @gouravdashore1449
    @gouravdashore1449 4 ปีที่แล้ว

    💥💥😘

  • @pritirai6369
    @pritirai6369 ปีที่แล้ว

    Its showing error in context classPathXMl line
    how to resolve it?

  • @gauravsinghrajput5959
    @gauravsinghrajput5959 ปีที่แล้ว

    Finally 4 din lage but sare ke sare concept aache se samhj gya ki kese kaam ho raha hai .. datasource manger se keke data soucrce gar ek chiz deep padh liya jitna aapne nh batya uss se bhi aage chala gaya but 4 din lage aur muhhe har ek chiz samhj aagai

  • @ZainDiscoveries
    @ZainDiscoveries 5 หลายเดือนก่อน

    I am getting a compilation error on this line
    int r = this.jdbcTemplate.update(query, st.getId(),st.getName(),st.getCity());
    is anyone facing the same issue ?

  • @tanyagoel2018
    @tanyagoel2018 3 ปีที่แล้ว +1

    I am not able to create connection please help

  • @SagarYadav-zy5lk
    @SagarYadav-zy5lk 10 หลายเดือนก่อน +2

    Hi all,
    I am facing issue with mysqlconnecter of 5.1.33 version but when I updated it to 8.1.23 everything is working fine. Anyone else also facing the same kind of issue?

  • @pankajtomar7944
    @pankajtomar7944 ปีที่แล้ว +1

    How there interface studentDAO object is used but interface does not initialize object

  • @MohdKaif-yu8qr
    @MohdKaif-yu8qr ปีที่แล้ว +1

    sir acces denied for user 'root@localhost' using password('YES') isko kese resolve kre

  • @dhananjayadas850
    @dhananjayadas850 11 หลายเดือนก่อน +1

    Hi i am not able to load the microsoft sql server database in this project "Could not load JDBC driver class [com.microsoft.sqlserver.jdbc.SQLServerDriver]"

  • @nayansahare7817
    @nayansahare7817 ปีที่แล้ว +1

    Hi Durgesh , loved your content,,
    I have one question,,,,
    While making this insert project you created studentdao interface and studentdaoimpl java class and it work fine,,, but when i made same project but without interface and it also worked fine.
    Q) So what is the difference in between them ? Which is better and why?🙂

    • @riturajshukla5897
      @riturajshukla5897 ปีที่แล้ว

      Its because of industry standards, And
      It make code clutter free and
      It helps in not making mistakes while revising the code
      Because you made interface so you need to implement and follow the rules of interface(basically you need to define all the abstract method)

    • @pradeepk2864
      @pradeepk2864 ปีที่แล้ว

      @@riturajshukla5897 yes

    • @prakashpandey96
      @prakashpandey96 11 หลายเดือนก่อน

      both are right but by using interface it shows that for what purpose we are making that class because when we implements it become necessary to implement that method...
      however you can do it just by making class
      good day

  • @paramjeetpunia8275
    @paramjeetpunia8275 4 ปีที่แล้ว +1

    Awesome sir....or dhak dhak dil hoga😂😂😂

  • @nikhilgarg8198
    @nikhilgarg8198 10 หลายเดือนก่อน +1

    The more I am learning Spring, the more I think it makes 0 sense over traditional Java as it was started by saying it is used reduce complexity and decoupling. I have gone through 32 lectures of Spring and it creates more coupling over any other Java technique i have learned so far. Let's hope in coming lectures it starts to make sense.

  • @swoyamsekharsahoo6337
    @swoyamsekharsahoo6337 3 ปีที่แล้ว +1

    sir i get a exception like "can't open C:\Users\swoyam\AppData\Local\Temp\Rar$EXa17880.5556\eclipse\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.2.v20210201-0955\jre\lib\tzmappings................"
    I have also got the same exception when creating standalone collection and auto-wired section.
    I had searched about this exception on google many times but not get the answer.
    plz, sir help me to debug this.

  • @codingwithjava7297
    @codingwithjava7297 3 ปีที่แล้ว +1

    Sir u r awesome "dil dhak dhak hoga"😂😂😂

    • @ahmedmack5960
      @ahmedmack5960 3 ปีที่แล้ว

      You prolly dont care but if you are bored like me during the covid times you can stream all the latest movies and series on instaflixxer. I've been binge watching with my girlfriend for the last few months xD

    • @zevsergio1206
      @zevsergio1206 3 ปีที่แล้ว

      @Ahmed Mack Yea, been watching on instaflixxer for since november myself =)

    • @siddhantsingh3392
      @siddhantsingh3392 2 ปีที่แล้ว

      @@ahmedmack5960 Shut up bot

  • @hasemali7799
    @hasemali7799 2 ปีที่แล้ว +1

    sir i found two error one is cannot find the config file>>>I put it in src/main/resources and its solved.....second conncection error for that i had to change the url property

  • @sumanthkarmarkar1760
    @sumanthkarmarkar1760 ปีที่แล้ว +2

    What is the purpose of creating StudentDao interface and then implementing it with StudentDaoImpl and overriding insert method? while we can directly create StudentDaoImpl class and write insert method

    • @badrinarayanpanda921
      @badrinarayanpanda921 ปีที่แล้ว

      This is for loose coupling purpose

    • @harshitpatel1331
      @harshitpatel1331 ปีที่แล้ว

      @@badrinarayanpanda921 Ohk but he didn't explain in detail about this. Just loose coupling doesn't clear anything to me

    • @ashukashyap7142
      @ashukashyap7142 11 หลายเดือนก่อน

      This is an standard which are using by the industries

  • @RajwinderKaur-er9lm
    @RajwinderKaur-er9lm 2 ปีที่แล้ว +1

    hello sir , bean not find error,

  • @maneshkumarhjmalhi9147
    @maneshkumarhjmalhi9147 3 ปีที่แล้ว +1

    Hi Sir hope you will fine Sir I have query Sir when you implementing the insert dao at that time you are getting value why Please Sir Please tell me

    • @urbantech28
      @urbantech28 3 ปีที่แล้ว +1

      That insert method simply returns the number of rows affected along with performing insertion operation...!!

    • @dhirajkumarlll
      @dhirajkumarlll 2 ปีที่แล้ว

      @@urbantech28 Correct Answer

  • @nishantraj9388
    @nishantraj9388 3 ปีที่แล้ว

    Thora dikkat ho raha h but aap se baat ho pata to shayed clear ho jata

  • @kanikagarg9835
    @kanikagarg9835 2 ปีที่แล้ว

    How to insert multiple rows into one insert method

  • @prakashpandey96
    @prakashpandey96 11 หลายเดือนก่อน

    is it necessary to make interface?
    we can also do it just by using class

    • @_PRANAYMATE
      @_PRANAYMATE 7 หลายเดือนก่อน +1

      It's uses the concept of Runtime Polymorphism as the implementation of the method can change at runtime with different implementation classes
      And yes it provides the concept of abstraction and encapsulation

  • @kartikrohilla224
    @kartikrohilla224 ปีที่แล้ว

    @ 15:33 to resolve right click on project explorer and refresh it. All will be done nicely.

  • @simranpatel_ce-1102
    @simranpatel_ce-1102 3 ปีที่แล้ว

    Sir ye student.java class move hi nai ho raha... I tried many times😣

  • @mohammedajazquadri7869
    @mohammedajazquadri7869 4 ปีที่แล้ว +2

    Durgesh sir apneh joh spring par videos woh enough hai ka freshers koh interview crack keh liyeh?

    • @LearnCodeWithDurgesh
      @LearnCodeWithDurgesh  4 ปีที่แล้ว +1

      Yes I am adding more content

    • @mohammedajazquadri7869
      @mohammedajazquadri7869 4 ปีที่แล้ว

      @@LearnCodeWithDurgesh thanks sir ...

    • @waqasbhatti4478
      @waqasbhatti4478 4 ปีที่แล้ว

      @@LearnCodeWithDurgesh sir hum fresher s wu expecr tu ni karaing k hamain speing wagera ati hu

    • @waqasbhatti4478
      @waqasbhatti4478 4 ปีที่แล้ว

      Wu tu hamsa expect karaing java jsp servlet wagera aur mcs degree

    • @yashverma6583
      @yashverma6583 ปีที่แล้ว

      @@LearnCodeWithDurgesh sir i am facing an issues from past 5 days
      WARNING: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ds' defined in URL [file:src/main/resources/StudentConfig.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
      PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'driverClassName' threw exception; nested exception is java.lang.IllegalStateException: Could not load JDBC driver class [com.mysql.jdbc.Driver]
      Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ds' defined in URL
      and was not able to solve please help me out

  • @swayam5341
    @swayam5341 6 หลายเดือนก่อน

    can anyone plz tell me the name of this design pattern

  • @AkashM5
    @AkashM5 2 ปีที่แล้ว

    template.update() nhi aa rha hai

  • @bsnegi1591
    @bsnegi1591 3 ปีที่แล้ว

    Kya program file mil sakti hai is video ki #please

  • @vishalugale2719
    @vishalugale2719 3 ปีที่แล้ว +1

    sir 1 dought hai studentDao me jdbcTemplate ke getter setter kyu banaye humne
    is it necessary

    • @vishalugale2719
      @vishalugale2719 3 ปีที่แล้ว

      plz reply

    • @nehapatil2495
      @nehapatil2495 3 ปีที่แล้ว

      Haa woh jaroori hai kyuki hamene database mai values insert karne ke liye code studentDaoImpl mai likha hai...aur woh code run hone ke liye usse database ke parameters jaise ki DriveClass, Url, Password aur Username chahiye...aur yeh parameters hamane Spring Core ki help se .xml file mai jdbcTemplate bean mai daal liye hai using ref tag. Aur .xml file mai hamane jdbcTemplate class mai property tag use kiya hai...matlab studentDaoImpl class mai property injection use kiya hai. Aur property injection use kiya hai toh getter setter bhi chahiye hoge.

    • @manishkumar-gk3it
      @manishkumar-gk3it 2 ปีที่แล้ว

      @@nehapatil2495 ap job kaha krti I also need job

  • @rahul-java-dev
    @rahul-java-dev 4 ปีที่แล้ว +1

    Sir go wo copy paste krne baad refresh krne se kaam ho jata. Mere sath bhi aisa hota hai, multiple times dikhne lgte h, but refresh krne baad thk ho jata h

    • @LearnCodeWithDurgesh
      @LearnCodeWithDurgesh  4 ปีที่แล้ว +1

      Acha mere sath bhi hota kabhi kabhi ...

    • @rahul-java-dev
      @rahul-java-dev 4 ปีที่แล้ว

      @@LearnCodeWithDurgesh Sir...bahut baut shukriya sir...aap mere Java ke adhure knowledge ko pura kr rhe h..
      Sir maine udemy pr kafi courses ki h but itna effective trike se ni sikh paya tha.

  • @parthsalat3915
    @parthsalat3915 2 ปีที่แล้ว +2

    Bean de de bajane ke liye lol

  • @gauravrana008
    @gauravrana008 2 ปีที่แล้ว

    Bhai last packages sent successfully error coming

  • @shashankdeep403
    @shashankdeep403 7 วันที่ผ่านมา

    Idhar pe to ioc container me object manual create kerna pad raha hai.

  • @nightcorextabay9424
    @nightcorextabay9424 ปีที่แล้ว +1

    If anyone facing Loading class `com.mysql.jdbc.Driver'. This is deprecated. error just change "com.mysql.cj.jdbc.Driver" in jdbcConfig.
    and if anyone facing database connection issue in intellij in pom.xml change mysql-connector-java version to 8.0.17

  • @AmanSingh-wv7no
    @AmanSingh-wv7no 2 ปีที่แล้ว +1

    Sir why did we used new operator to create student object. We should have used bean instead.

    • @30secondsEmotions
      @30secondsEmotions 2 ปีที่แล้ว

      I think because it is not dependency... that's why..and student is a data that would come from client

  • @manohar_coder99
    @manohar_coder99 ปีที่แล้ว

    Why interface use directly use class is it possible?

    • @omkar1275
      @omkar1275 ปีที่แล้ว

      To make it loosely coupled we used interface here.

  • @amitjalwanshi6448
    @amitjalwanshi6448 2 ปีที่แล้ว +1

    I 'm getting this error Cannot invoke "java.util.Map.get(Object)" because "this.serverVariables" is null can anyone help me to fix this.

    • @AkashVerma-hi3uq
      @AkashVerma-hi3uq 2 ปีที่แล้ว

      trying using latest version of mysql connector

  • @nishantraj9388
    @nishantraj9388 3 ปีที่แล้ว +1

    sir maine app k channel se hibernate kiya koi dikkat nai hua but yaha Insert data using Spring JDBC bahut dikkat ho raha hai

  • @abhimannyumagar1033
    @abhimannyumagar1033 28 วันที่ผ่านมา

    jay bam bole is work while coding 7:45 😄

  • @dbsagoku8169
    @dbsagoku8169 ปีที่แล้ว +1

    some guys would have written "datasource" instead of "dataSource" thats why the are getting errors.

  • @arvindnigam3134
    @arvindnigam3134 ปีที่แล้ว

    Sir improve your naming convention its raises confusion

  • @thirumaleshtelugu1143
    @thirumaleshtelugu1143 3 ปีที่แล้ว +1

    Sir, I have tried both ways same error, please help me I couldn't find the error.

    • @digiartpassion8513
      @digiartpassion8513 2 ปีที่แล้ว +1

      digiart passion
      1 second ago
      if you try this today please change driver to com.mysql.cj.jdbc.Driver and mysql-connector-java version com.mysql.cj.jdbc.Driver 8.0.11...or else it will not work

    • @pathankhadeer9921
      @pathankhadeer9921 2 ปีที่แล้ว

      @@digiartpassion8513 brother can u pls tell me how to change the driver

  • @yuvrajsinghcme1143
    @yuvrajsinghcme1143 ปีที่แล้ว

    can i know what is the reason for making interface and then implementing with class???

    • @abhirupdas8738
      @abhirupdas8738 หลายเดือนก่อน

      Did you get the answer ?
      I also want to know this

    • @yuvrajsinghcme1143
      @yuvrajsinghcme1143 หลายเดือนก่อน

      There are multiple reasons, some of them are code reusability, multiple inheritance

  • @hvbairagi
    @hvbairagi ปีที่แล้ว

    Why do we create an Interface for DAO, why can't we create the class directly.
    Anyway, we are using the DAO interface only once.
    Please can someone explain.

    • @abhirupdas8738
      @abhirupdas8738 หลายเดือนก่อน

      @hvbairagi Did you get the answer ?
      I also want to know this

  • @poojakarma1868
    @poojakarma1868 2 ปีที่แล้ว

    Hello sir, I got an error Failed to obtain JDBC Connection, sir please help me

    • @mandardeulkar6010
      @mandardeulkar6010 2 ปีที่แล้ว +3

      Try to use below dependency for mysql connector in pom.xml
      mysql
      mysql-connector-java
      8.0.18
      And also make change in Config.xml for "driverClassName" -
      I HOPE, IT SHOULD WORK

  • @gauravsinghrajput6012
    @gauravsinghrajput6012 ปีที่แล้ว

    sab uppar se gya yrr\

  • @saumyasingh8637
    @saumyasingh8637 ปีที่แล้ว +1

    Sir I am getting this error" Caused by: java.lang.NullPointerException: Cannot invoke "java.util.Map.get(Object)" because "this.serverVariables" is null" and I have been trying to fix this error for last 5 hrs .I request to you Sir to help me out to this problem.Or anyone If u have an idea about that please help me out.

    • @programminginfo3403
      @programminginfo3403 ปีที่แล้ว +1

      Please use the latest MySQL connector maven dependency. I used 8.0.18, it resolved the exception.

    • @harharmahadev1415
      @harharmahadev1415 ปีที่แล้ว

      @@programminginfo3403 thanks, it's working

  • @freedomfreedom3913
    @freedomfreedom3913 3 ปีที่แล้ว +4

    Simply right click karenge aur bhagwan ka naam lenge hahahah that's hilarious lolll

  • @kanuwebmedia8250
    @kanuwebmedia8250 4 ปีที่แล้ว +2

    Boss please make react and flask video ke liye me aap ko payment Kara doga please 🙏🙏🙏🙏🙏 request

  • @mayankyadav8538
    @mayankyadav8538 ปีที่แล้ว +1

    sir 11 minute k baad thoda acche se samjha do, nhi pta chal rha kiska object banke kis me ja rha hai

  • @thirumaleshtelugu1143
    @thirumaleshtelugu1143 3 ปีที่แล้ว +1

    HI sir, I got an error Failed to obtain JDBC Connection, please help me to correct it.

    • @nitinbisht8575
      @nitinbisht8575 3 ปีที่แล้ว +3

      Update to mysql-connector-java : version - 8.0.11

    • @harshmanola563
      @harshmanola563 3 ปีที่แล้ว

      I am getting same error

    • @nitinbisht8575
      @nitinbisht8575 3 ปีที่แล้ว

      @@harshmanola563 which version of my sql connector u r using.?

    • @ritikabera9536
      @ritikabera9536 2 ปีที่แล้ว

      Getting the same error

    • @shubhamsharma-xi5vy
      @shubhamsharma-xi5vy 2 ปีที่แล้ว

      @@nitinbisht8575 thank you sir

  • @fatahuddin4895
    @fatahuddin4895 3 ปีที่แล้ว +1

    Sir this is no update option is comes in jdbtemplate. please sir give me solution. I also send you message on telegram plz help me

    • @urbantech28
      @urbantech28 3 ปีที่แล้ว

      String updateQuery = "update Student set age = ? where id = ?";
      jdbcTemplateObject.update(updateQuery, age, id);

  • @fatahuddin4895
    @fatahuddin4895 3 ปีที่แล้ว +1

    check last 10 roj phle hi maine aapko fb pr kiya hai msz please check sir
    sir this problem is created when i run springjdbc please sir i request give me solution
    Error creating bean with name 'jdbcTemplate' defined in class path resource [com/spring/jdbc/config.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'dataSoucre' of bean class [org.springframework.jdbc.core.JdbcTemplate]: Bean property 'dataSoucre' is not writable or has an invalid setter method. Did you mean 'dataSource'?

    • @yashverma6583
      @yashverma6583 ปีที่แล้ว

      same please help me also if you found the answer

  • @mayankyadav8538
    @mayankyadav8538 ปีที่แล้ว +1

    bahot confuse kar diYA SIR,NHI SAMJH AAYA

  • @Shadab738
    @Shadab738 หลายเดือนก่อน

    Bhai Itna complex se toh accha hai ke normal jdbc use Karo
    4 class se toh accha 4 line hai😅

  • @manishkumar-gk3it
    @manishkumar-gk3it 2 ปีที่แล้ว +1

    Confuse krdiya apne

  • @parthsalat3915
    @parthsalat3915 2 ปีที่แล้ว +1

    Pattern spelling is incorrect!

  • @aaravchandra3082
    @aaravchandra3082 3 ปีที่แล้ว

    Yeh Dao and entities kyon banaya?

    • @nehapatil2495
      @nehapatil2495 3 ปีที่แล้ว

      For code separation i.e to separate GUI, business logic and data access layer. It is DAO design pattern. You can search about it for more information.

  • @factandknowledge759
    @factandknowledge759 3 ปีที่แล้ว +1

    Boht confusing hai..

  • @pulkitgupta8310
    @pulkitgupta8310 2 ปีที่แล้ว

    why do we create different package com.spring.jdbc.dao

  • @tutormaths3637
    @tutormaths3637 5 หลายเดือนก่อน

    how the studentDao is the parent of studentdaoimpl

    • @YashSingh-xs5yj
      @YashSingh-xs5yj 4 หลายเดือนก่อน

      because studentDaoImpl implements studentDao

  • @bikramkc7916
    @bikramkc7916 4 ปีที่แล้ว +2

    JdbcTemplate template=context.getBean("jdbcTemplate", JdbcTemplate.class);
    hello sir why i am not able to import JdbcTemplate.please help me

    • @jiyasingh5937
      @jiyasingh5937 3 ปีที่แล้ว +1

      Because maven sometimes dont import specific class automatically ........... hence it is better to use intellij ultimate in order get rid of this issue

    • @sunilkatkar5347
      @sunilkatkar5347 2 ปีที่แล้ว

      same here please help me

    • @sandipabhowmick7618
      @sandipabhowmick7618 2 ปีที่แล้ว

      Try to update project. Right click on the project name->Maven->Update Project. It worked for me. Hope this helps.

    • @ravsahebnanwate5897
      @ravsahebnanwate5897 ปีที่แล้ว

      bro u sovled this issue acttualy i also get this issue if you sovled this please ping me

  • @mokutau
    @mokutau 7 หลายเดือนก่อน

    es lecture mein bahut confuse kar diya

  • @gauravsinghrajput5959
    @gauravsinghrajput5959 ปีที่แล้ว

    Sir aap kabhi reply mh karte

  • @eduamzia
    @eduamzia 4 ปีที่แล้ว +1

    Bean property 'driverClasssName' is not writable or has an invalid setter method. Did you mean 'driverClassName'?
    I am not able to solve this error plz help me sir.

    • @AlphaGamingWorld
      @AlphaGamingWorld 3 ปีที่แล้ว

      same

    • @satyamsinghal3718
      @satyamsinghal3718 2 ปีที่แล้ว

      spelling issue

    • @simarpreet969
      @simarpreet969 2 ปีที่แล้ว

      Try changing the name="jdbcTemplate" to name="template". Since you have given name as jdbcTemplate spring will search for a setter method with name setJdbcTemplate() in EmployeeDao class, but the acutal method you have is setTemplate()

  • @day2daylife884
    @day2daylife884 ปีที่แล้ว +1

    I'm getting error while creating the bean. I did same thing but still getting error. Any help to resolve it.