Spring Boot,Restful API,JPA, Hibernate, MySQL CRUD Tutorial




Note : To All viewers who are watching this video , incase you are getting error while using method findOne(empid) .This error can be resolved by using “return …

Original source


43 responses to “Spring Boot,Restful API,JPA, Hibernate, MySQL CRUD Tutorial”

  1. Hi Varun, I am writing this specially to thank you for the amazing work. I have been looking for such detailed explanation project for one of my Learning setup for Selenium automation. You have no idea how beneficial is this single video for me. It not only gave lots of experience to understand, build and setup an API project but also a platform to teach many of my friends about API testing. Thanks a ton, I would surely watch other videos and learn more..Thanks from bottom of my heart!

  2. After few days of solving all kinds of bugs, both folder structure, jpa(i wrote jps instead of jpa, spent 3 days on this bug) and id "type" bug, today solved all bugs, thank u for this beautiful intro to spring boot, got much knowledge from this tutorial, thank u is small word man, open a patron, iam willing to help others by contributing some money to u, so that u will provide us some more good content

  3. Hey this is the most satisfying and helpful video! Just a couple important queries. Why are u using JPA? Cant we just use hibernate alone. I am confused.
    Secondly could you please tell how i can add a simple registration and login mechanism using thebabove technologies in this same project. Kindly help me. I coudlnt find this anywhere. Please guide sir!

  4. Thanks a lot Varun. I am able to understand what is the flow and process, small request from my side is it possible to explain the method parameters and statements like 'response entity ' like this type of statements or lines so it will be heplfull to understand in which way wee need to think and progress for more clarity.

  5. Hi Varun,I am getting the following issue : please help me out*************************
    APPLICATION FAILED TO START
    ***************************Description:
    Field employeeRepository in com.letstartcoding.springbootrestapiexample.dao.EmployeeDAO required a bean of type 'com.letstartcoding.springbootrestapiexample.repository.EmployeeRepository' that could not be found.
    Action:Consider defining a bean of type 'com.letstartcoding.springbootrestapiexample.repository.EmployeeRepository' in your configuration.

  6. Hi Varun, Brilliant explanation and thanks very much for the amazing work. I was keen on understanding the Model View Controller pattern and your video helped me with that, also I've a question as to why are we not using spring initialzr to create the dependency as it would be simpler approach I believe, is there a specific reason for that ? 🙂

  7. HI Varun, thanks much for this demo. Have tried implementing the same. Everything is fine but when i try to run as java application by right clicking the SpringBootApplication, i'm facing the following error:

    Exception encountered during context initialization – cancelling refresh attempt:
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/validation/ValidatorFactory

    Tricks i tried as suggested by google: Have included the required dependencies, have added a column annotation in bean class in addition to this above video. tried adding constructor for bean class. no use of all these. still the same error comes.. help me out pls..

  8. i am having trouble with this error
    "Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Unable to acquire JDBC Connection"

    can you please with this. It will be very helpful.

  9. Hello, Can you please help me run Employee Application! I came up with some errors due to application properties file. Could you please help me figure out an error. I can run it as a maven build without any exception. The problem is with the final execution when we run EMPLOYEEaPPLICATION class. Thank you for the video and support!

  10. Awesome Work Varun, straight to the point and perfect. Would suggest if you could have spoken about annotation a bit would have been even better, but this too is amazing stuff man, thank you.

  11. Hey, I see you’re responding to comments. This is a really nice tutorial, but how to make the json work with Bidirectional Association? It just turns into recursiveness.

    Let’s say you access GET /employee/, then the json should also include all of the Assignment(s). Now, with bidirectional, what this does is that the assignment will refer back to the employee again, and an endless loop will happen causing stackoverflow. I know that you can just use an annotation to make it not serialize fields, but that for example mean that when you access GET /assignment/5, then the assigned employee json won’t be included.

    See my stack overflow question for more detail: https://stackoverflow.com/questions/53807722/hibernate-and-tomee-bidirectional-association-causes-json-recursiveness. Thank you so much if you’ve got any info on this!!

  12. sir i have a doubt 1)why didn't u add hibernate jars in pom.xml file and
    2) we should add spring orm whenever we are combining spring and hibernate
    3)when we have to use service layer you used dao and controller
    4)why is the red color mark on javaresources & main project till the end plzzzzz answer sir waiting for your reply

  13. Somebody can i help me?, please!

    Throws this Exception, i don't know why happen that. 🙁

    "java.sql.SQLException: Unknown system variable 'query_cache_size'"

    PD: Thanks for the video, i love it and most important, i learn a lot!

Leave a Reply