How do you do a spring boot with CRUD? Spring Boot, MySQL, JPA, Hibernate Restful CRUD API Example

Sdílet
Vložit
  • čas přidán 29. 01. 2022
  • #springbootcrudoperations #crud
    Which are valid annotations to perform CRUD operations in Spring REST API?
    How do you do a spring boot with CRUD?
    Hi Friends,
    In this video we going to create complete springboot application with all CRUD Operations . We are using below dependencies
    1. Spring Web
    2. MySql connector driver
    3. Spring data Jpa
    We have used mysql , hibernate and data jpa in this example.
    hello World Springboot rest API : • #springboot #restapi S...
    How to write rest api to return java bean and list video url : • #springboot #restapi #...
    How to connect springboot application to database : • #springboot #mysql How...
    #springbootcrudexample #springboot #sjprogrammingsolutions
    For more videos please subscibe to the channle.
    Thank you All !!

Komentáře • 30

  • @sonali2720
    @sonali2720 Před rokem +1

    Thank You for this video lecture ,it helped me a lot to understand the basic idea of springboot and its connection with DB .

  • @raamartist8676
    @raamartist8676 Před rokem +1

    It's really Great Session Mam...The way you explain all this line by line with full explanation it's really Great mam🥳🙏😇👍

  • @youtubefever3273
    @youtubefever3273 Před 2 lety +1

    Very good video . This type of video I was searching for long time which explains a complete project in such a nice way. Thank you

  • @KrishnaKoonapareddy
    @KrishnaKoonapareddy Před rokem +1

    mam,this vedio is so helpful for me.Thanks a lot mam

  • @MosabbirSadman
    @MosabbirSadman Před 2 lety +1

    This was a great tutorial, highly appreciate it!
    However in Employeecontroller you should not set the Id in the updateEmp method as it is the Primary Key.

  • @sujitkate1781
    @sujitkate1781 Před rokem

    Awesome mam, your way of teaching is amazing, simple, and easy to understand. I really liked it.🥳🙏😇👍

  • @mustafizur453
    @mustafizur453 Před rokem

    there is an error due to java --> jakarta persistence API.. how to use jakarta?

  • @syedmoulana9799
    @syedmoulana9799 Před 7 měsíci

    Mamm which sts version you are using I am not getting spring boot 2.6.3 in my sts

  • @RohitMishra-tu5jl
    @RohitMishra-tu5jl Před 2 lety

    hey , I am getting 500 internal error ""Consider defining a bean of type 'com.rest.api.service.EmployeeService' in your configuration."" this what should I do. I did exact same thing

    • @SJProgrammingSolutions
      @SJProgrammingSolutions  Před rokem

      Did you added @Service annotation?

    • @MrThaboike
      @MrThaboike Před rokem

      Had the same, drives me crazy and didn't get it working, but i did circumvent the problem by just ignoring the EmployeeService interface:
      @RestController
      @RequestMapping("/emp")
      public class Employeecontroller {
      @Autowired
      EmployeeRepository repo;

      @PostMapping("/save")
      public Employee saveEmployee(@RequestBody Employee emp) {
      return repo.save(emp);
      }

      }

  • @BhanuPrakash-iz6es
    @BhanuPrakash-iz6es Před rokem

    Mam can you please share the list. what dependencies you are added in Pom.Xml

  • @balabala-09
    @balabala-09 Před rokem

    can you please share the code file

  • @umasingh4369
    @umasingh4369 Před rokem

    Mam I got a error exception during pool initialization

    • @SJProgrammingSolutions
      @SJProgrammingSolutions  Před rokem

      Hello , please share screenshot of exception on Instagram id : sjprogramming

    • @umasingh4369
      @umasingh4369 Před rokem

      @@SJProgrammingSolutions yes mam I already did plz check

    • @santosh2048
      @santosh2048 Před rokem

      can you share the solution?

    • @umasingh4369
      @umasingh4369 Před rokem

      @@santosh2048 don't ask her it's been a 3 month still she won't gave me reply I took screenshot shot also n share with her insta I'd but they didn't give a damm better you can go stack over flow site nd find the solution don't waste your time here

  • @sandunjayathilake9333

    I have got an issue - Error creating bean with name 'employeeRepository' defined in com.example.repository.EmployeeRepository defined in @EnableJpaRepositories declared on MySqlExampleApplication: Not a managed type: class com.example.entity.Employee
    How to solve this ?

  • @VishnuKandukuri-xf3ln

    Hi Madam.. Thank you for uploading this video. But I am having error with description : "Field employeeService in com.demoprojectCrudOperations.controller.EmployeeController required a bean of type 'com.demoprojectCrudOperations.service.EmployeeService' that could not be found. " Did exactly what you explained. Please suggest the resolution.

    • @SJProgrammingSolutions
      @SJProgrammingSolutions  Před rokem +1

      Hello Vishnu, did you added @Autowired on employeesService ? Please check and if still you are getting error then share the screenshot of error on sjprogrammingsolutions@gmail.com mail will check . Thank you

  • @sharanb6718
    @sharanb6718 Před rokem

    Hi mam i sent my error in ur instagram. Can u check and suggest me how to fix this

  • @surajyadav8590
    @surajyadav8590 Před rokem

    Hi mam
    I am facing this issue can you pls help.
    Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
    2023-03-17T01:15:21.918+05:30 ERROR 18836 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter  :
    ***************************
    APPLICATION FAILED TO START
    ***************************
    Description:
    Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
    Reason: Failed to determine a suitable driver class
    Action:
    Consider the following:
    If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
    If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).

    • @SJProgrammingSolutions
      @SJProgrammingSolutions  Před rokem

      Hello Suraj, It seems you have not configured spring.datasource.url property in your application.properties file