SPRING BOOT | How to insert / store data into MySQL database with REST API in Java Spring Boot

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

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

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

    Hi thank you for this video. I would like to create an abstracat user before creating student but springboots's send me an error. Do you mind to do an extra video with abstracts class ? thank you very much

  • @LanAnh-bi8pv
    @LanAnh-bi8pv 6 месяцев назад

    thank you so much

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

    Hi bro I am adding the data via Postman but it is adding Null values, could you please help me to get it resolved

    • @movietrailerme1471
      @movietrailerme1471 6 месяцев назад +2

      check the all key name same as defined in class variable when you passing value by postman every key name same as class variables

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

      Now I am not able to store multiple data. It is storing only last input. Could you please help to store all data

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

      @@lakshmipathi8836 when you send data by postman than change the id value or if you define I'd Generatedtype Auto than no need too pass I'd value from postman, I'd value automatically generated so remove only I'd line when you send the data by postman

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

      ​@@lakshmipathi8836When you send the data by postman than change the id value

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

      ​When you send the data by postman than change the id value

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

    Thank you ❤

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

    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

    • @gioeledallapozza5824
      @gioeledallapozza5824 7 месяцев назад +1

      same problem, have you fixed? thank you :)

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

      I am also facing same issues

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

      @@gioeledallapozza5824 yes will send you solution tommorow