POST data in Mysql database using Spring Boot and Postman tutorial | REST API

Поделиться
HTML-код
  • Опубликовано: 25 дек 2024
  • НаукаНаука

Комментарии • 82

  • @mohomedrimzan8916
    @mohomedrimzan8916 7 месяцев назад

    Was going through so many tutorials but yet this was the successful one. Great One!!!

  • @vishwaravi45
    @vishwaravi45 9 месяцев назад

    Your doing a good job and Straight to the point. 🎉 And thats a "PascalCase" Not a "camelCase".❤

  • @anithkumar1524
    @anithkumar1524 Год назад +1

    Thank you very much Brother, i m new to this coding, So Your videos would have helped me a lot to understand simply, Really appreciate your efforts🤩👍

  • @maniator7104
    @maniator7104 Месяц назад

    Thank you Gentleman, this is helpful

  • @deeyt7573
    @deeyt7573 6 месяцев назад

    Simple & works fine

  • @pennyansa
    @pennyansa Год назад +1

    Application runs fine but im not getting response in the postman, though the status is 200ok. this is my post request {
    "marks":100,
    "name":"Penny"
    }
    its my response: {}
    null values with random id are getting inserted into database. whats wrong? any idea!

    • @pennyansa
      @pennyansa Год назад

      Hibernate: select next_val as id_val from students_db_seq for update
      Hibernate: update students_db_seq set next_val= ? where next_val=?
      Hibernate: insert into students_db (st_marks,st_name,id) values (?,?,?)

    • @unitedtoptech6288
      @unitedtoptech6288  Год назад

      Where are you passing the id? I see u have mark , name and id columns

    • @mr.khiladi6796
      @mr.khiladi6796 Год назад

      I am having the same problem, please somebody help us.

    • @mr.khiladi6796
      @mr.khiladi6796 Год назад

      @@pennyansa did you get your problem solved ? if yes, please help me also.

    • @charubabbar8807
      @charubabbar8807 Год назад

      have your problem solved. I am getting same error.

  • @telugudramaworld8021
    @telugudramaworld8021 Год назад

    DO we need to write the MySQL code in prior or not needed, pls help here - The one with creating newDB and all in MySQL

    • @unitedtoptech6288
      @unitedtoptech6288  Год назад

      Yeah you need to create the database first using mysql code prior

  • @GnanaPonneri
    @GnanaPonneri 8 месяцев назад

    good Explanation

  • @jayaprakash1546
    @jayaprakash1546 Год назад

    Thank you for tutorial

  • @takundajori2645
    @takundajori2645 4 месяца назад

    Thank you so much

  • @NikitaLazaroSevcisen
    @NikitaLazaroSevcisen 9 месяцев назад

    do you have this on some github repository??

  • @siddhishinde8027
    @siddhishinde8027 8 месяцев назад

    Thank you sir, i have problem after the post and get my data is not reflecting in mysql workbench , please help me

    • @unitedtoptech6288
      @unitedtoptech6288  8 месяцев назад

      What do you get as response? any errors?

    • @siddhishinde8027
      @siddhishinde8027 8 месяцев назад

      @@unitedtoptech6288 no errors sir

    • @siddhishinde8027
      @siddhishinde8027 8 месяцев назад

      @@unitedtoptech6288 no errors postman sending the request and the table is also created in mysql work bench only the data is not getting fetched

    • @unitedtoptech6288
      @unitedtoptech6288  8 месяцев назад

      is it fetch all data or fetch by using an id alone?

    • @siddhishinde8027
      @siddhishinde8027 8 месяцев назад

      @@unitedtoptech6288 am providing only first name, last name and email the id is automatically generated (employee management system)

  • @josephrexa5444
    @josephrexa5444 10 месяцев назад

    Simply It works

  • @SyedWaseem-r7f
    @SyedWaseem-r7f Год назад

    I didnt understand how you created the postman. Like how can you please tell? its not mentioned in the video

    • @unitedtoptech6288
      @unitedtoptech6288  Год назад

      just click on create new workspace option, the one with the plus icon

  • @ArthurCnap
    @ArthurCnap 10 месяцев назад

    Hi, im having a problem with starting an application it throws:
    "Field studentRepository in com.project.ToDoList.Service.StudentService required a bean of type 'com.project.ToDoList.Repository.StudentRepository' that could not be found."
    Thought it might happen because there's no @Repository annotation but adding it didn't help.
    Also the informations about creating the table in run console do not appear, i have
    spring.jpa.show-sql=true and spring.jpa.generate-ddl=true in my aplication properties

    • @unitedtoptech6288
      @unitedtoptech6288  10 месяцев назад

      Please check if you have added autowired annotation to repository and service object variables

    • @ArthurCnap
      @ArthurCnap 10 месяцев назад

      @@unitedtoptech6288 I figured it out, guess there was a problem with MySQL Driver cause I was working on a project generated a few days ago. I took some random dependency from maven repo and that created all the problems. Thank you for the response mate

    • @unitedtoptech6288
      @unitedtoptech6288  10 месяцев назад

      ohh glad it woked for you now! welcome

  • @MichalFogel-t1p
    @MichalFogel-t1p Год назад

    Hi! thanks for the video, very helpfull.
    when using postman,I am getting a 500 error, seems like a problem with data base... because if Iam just returning a string there is not an error and if trying update data base - error. if someone knows what can i do

    • @unitedtoptech6288
      @unitedtoptech6288  Год назад

      So you are performing update operation?

    • @mr.khiladi6796
      @mr.khiladi6796 Год назад

      are you using inteellij idea community version? if so, it does not support spring.

    • @unitedtoptech6288
      @unitedtoptech6288  11 месяцев назад

      wdym? i am using that one

  • @numzikshiuaxing1600
    @numzikshiuaxing1600 8 месяцев назад

    As you didn't mention anything about postman,could you please tell me regarding what i should do in postman?I have to idea what url should I type or the localhost.

    • @unitedtoptech6288
      @unitedtoptech6288  8 месяцев назад

      Just type the same URL as I have done in postman, It is just a tool for making API calls, please learn about it first

    • @numzikshiuaxing1600
      @numzikshiuaxing1600 8 месяцев назад

      @@unitedtoptech6288 Error: connect ECONNREFUSED 127.0.0.1:3000
      Request Headers
      Content-Type: application/json
      User-Agent: PostmanRuntime/7.37.3
      Accept: */*
      Postman-Token: be86e12b-13d6-4992-a219-ffec31712fba
      Host: localhost:3000
      Accept-Encoding: gzip, deflate, br
      Connection: keep-alive I get this when I click send after typing the url.

    • @unitedtoptech6288
      @unitedtoptech6288  8 месяцев назад

      Is your spring boot application running on port 3000?

    • @numzikshiuaxing1600
      @numzikshiuaxing1600 8 месяцев назад

      @@unitedtoptech6288 yeahh...I figured it out..thank you!

    • @unitedtoptech6288
      @unitedtoptech6288  8 месяцев назад

      Was that the issue?

  • @Strawhat-lu7ib
    @Strawhat-lu7ib Год назад

    When iam posting json body one of the data is being stored as null in database

    • @unitedtoptech6288
      @unitedtoptech6288  Год назад

      Check if you have the type as json in postman and if you are using express.json() in code

  • @rajeshkhannaarumugam6699
    @rajeshkhannaarumugam6699 5 месяцев назад

    will it work with maven

  • @KSsistersTalents
    @KSsistersTalents 2 месяца назад

    I am getting error as 401 unauthorised while i am posting a request

  • @gk79797
    @gk79797 Год назад +1

    I am getting MySQL8 dialect has been deprecated..could you please help ?

    • @unitedtoptech6288
      @unitedtoptech6288  Год назад

      I just did this last week, I didn't get any such things, did you select the java version same as me?

    • @manojprabhakar5286
      @manojprabhakar5286 Год назад

      @@unitedtoptech6288 how can we insert multiple records in to mysql through postman by using nodejs can you please do a video sir

    • @unitedtoptech6288
      @unitedtoptech6288  11 месяцев назад

      yep I did , you can send list of objects for that from postman

  • @shreyamarya3452
    @shreyamarya3452 8 месяцев назад

    how to delete the data from Querry through this program

  • @_KrishnaMoorthyR
    @_KrishnaMoorthyR Год назад

    Sir I send request post and getting output as empty object

  • @ង៉ុយទ្រីលីហួរ

    thank men

  • @mamtakurrey6405
    @mamtakurrey6405 Год назад

    I didn't get table in MySQL

  • @charubabbar8807
    @charubabbar8807 Год назад

    Hi Through postman I am getting response empty { } and rows are inserting in db as :
    +----+---------+------+
    | id | st_mark | name |
    +----+---------+------+
    | 1 | 0 | NULL |
    +----+---------+------+
    Please help! Thanks in advance

    • @unitedtoptech6288
      @unitedtoptech6288  Год назад

      Are you sending response in code , that res send() thing ?

  • @clarkkent3004
    @clarkkent3004 5 месяцев назад

    W